src/DependencyInjection/LeezyPheanstalkExtension.php
public function configureConnections(ContainerBuilder $container, array $config)
    {
        // Create a connection locator that will reference all existing connection
        $connectionLocatorDef = new Definition(PheanstalkLocator::class);
        $container->setDefinition('leezy.pheanstalk.pheanstalk_locator', $connectionLocatorDef);
        $container->setParameter('leezy.pheanstalk.pheanstalks', $config['pheanstalks']);
    }
public function configureConnections(ContainerBuilder $container, array $config)
    {
        // Create a connection locator that will reference all existing connection
        $connectionLocatorDef = new Definition(PheanstalkLocator::class);
        $container->setDefinition('leezy.pheanstalk.pheanstalk_locator', $connectionLocatorDef);
        $container->setParameter('leezy.pheanstalk.pheanstalks', $config['pheanstalks']);
    }
public function configureConnections ( ContainerBuilder $ container , array $ config ) { // Create a connection locator that will reference all existing connection $ connectionLocatorDef = new Definition ( PheanstalkLocator :: class ) ; $ container -> setDefinition ( 'leezy.pheanstalk.pheanstalk_locator' , $ connectionLocatorDef ) ; $ container -> setParameter ( 'leezy.pheanstalk.pheanstalks' , $ config [ 'pheanstalks' ] ) ; }
Configures the Connections and Connection Locator.

@param ContainerBuilder $container
@param array            $config

@throws PheanstalkException
Configures the Connections and Connection Locator .