public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration($this->getAlias());
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yml');

        $container->setParameter('gendoria_command_queue.pools', $config['pools']);
        if (!$config['enabled']) {
            $managerDefinition = $container->getDefinition('gendoria_command_queue.manager');
            $managerDefinition->setClass(NullQueueManager::class);
        }
        $this->setupManagers($config, $container);
        if (!$config['listeners']['clear_entity_managers']) {
            $container->removeDefinition('gendoria_command_queue.listener.clear_entity_managers');
        }        
        if (!$config['listeners']['clear_logs']) {
            $container->removeDefinition('gendoria_command_queue.listener.clear_logs');
        }        
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration($this->getAlias());
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yml');

        $container->setParameter('gendoria_command_queue.pools', $config['pools']);
        if (!$config['enabled']) {
            $managerDefinition = $container->getDefinition('gendoria_command_queue.manager');
            $managerDefinition->setClass(NullQueueManager::class);
        }
        $this->setupManagers($config, $container);
        if (!$config['listeners']['clear_entity_managers']) {
            $container->removeDefinition('gendoria_command_queue.listener.clear_entity_managers');
        }        
        if (!$config['listeners']['clear_logs']) {
            $container->removeDefinition('gendoria_command_queue.listener.clear_logs');
        }        
    }
public function load ( array $ configs , ContainerBuilder $ container ) { $ configuration = new Configuration ( $ this -> getAlias ( ) ) ; $ config = $ this -> processConfiguration ( $ configuration , $ configs ) ; $ loader = new Loader \ YamlFileLoader ( $ container , new FileLocator ( __DIR__ . '/../Resources/config' ) ) ; $ loader -> load ( 'services.yml' ) ; $ container -> setParameter ( 'gendoria_command_queue.pools' , $ config [ 'pools' ] ) ; if ( ! $ config [ 'enabled' ] ) { $ managerDefinition = $ container -> getDefinition ( 'gendoria_command_queue.manager' ) ; $ managerDefinition -> setClass ( NullQueueManager :: class ) ; } $ this -> setupManagers ( $ config , $ container ) ; if ( ! $ config [ 'listeners' ] [ 'clear_entity_managers' ] ) { $ container -> removeDefinition ( 'gendoria_command_queue.listener.clear_entity_managers' ) ; } if ( ! $ config [ 'listeners' ] [ 'clear_logs' ] ) { $ container -> removeDefinition ( 'gendoria_command_queue.listener.clear_logs' ) ; } }
Load extension.

@param array            $configs
@param ContainerBuilder $container
@throws InvalidArgumentException Thrown, when pool required in configuration is not present.
Load extension .