DependencyInjection/CleverAgePermissionExtension.php
public function load(array $configs, ContainerBuilder $container): void
    {
        parent::load($configs, $container);

        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $classVoterDefinition = $container->getDefinition(ClassVoter::class);
        foreach ($config['classes'] as $class => $configuration) {
            $classVoterDefinition->addMethodCall('addPermissions', [$class, $configuration['permissions']]);
        }
    }
public function load(array $configs, ContainerBuilder $container): void
    {
        parent::load($configs, $container);

        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $classVoterDefinition = $container->getDefinition(ClassVoter::class);
        foreach ($config['classes'] as $class => $configuration) {
            $classVoterDefinition->addMethodCall('addPermissions', [$class, $configuration['permissions']]);
        }
    }
{@inheritdoc}