DependencyInjection/PHPRedisExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $config = $this->getConfiguration($configs, $container);
        $config = $this->processConfiguration($config, $configs);

        foreach ($config['class'] as $name => $settings) {
            $def = new Definition($container->getParameter('pdl.phpredis.class'));
            $def->setPublic(true);
            $def->setScope(ContainerInterface::SCOPE_CONTAINER);
            $def->addArgument($name);
            $def->addArgument($container->getParameter('kernel.environment'));
            $def->addArgument($settings);
            $def->addMethodCall('setLogger', [new Reference('pdl.phpredis.logger')]);
            $container->setDefinition(sprintf('pdl.phpredis.%s', $name), $def);
        }
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $config = $this->getConfiguration($configs, $container);
        $config = $this->processConfiguration($config, $configs);

        foreach ($config['class'] as $name => $settings) {
            $def = new Definition($container->getParameter('pdl.phpredis.class'));
            $def->setPublic(true);
            $def->setScope(ContainerInterface::SCOPE_CONTAINER);
            $def->addArgument($name);
            $def->addArgument($container->getParameter('kernel.environment'));
            $def->addArgument($settings);
            $def->addMethodCall('setLogger', [new Reference('pdl.phpredis.logger')]);
            $container->setDefinition(sprintf('pdl.phpredis.%s', $name), $def);
        }
    }
{@inheritDoc}