src/DependencyInjection/LeezyPheanstalkExtension.php
public function configureProfiler(ContainerBuilder $container, array $config)
    {
        // Setup the data collector service for Symfony profiler
        $dataCollectorDef = new Definition(PheanstalkDataCollector::class);
        $dataCollectorDef->setPublic(false);
        $dataCollectorDef->addTag('data_collector', ['id' => 'pheanstalk', 'template' => $config['profiler']['template']]);
        $dataCollectorDef->addArgument(new Reference('leezy.pheanstalk.pheanstalk_locator'));

        $container->setDefinition('leezy.pheanstalk.data_collector', $dataCollectorDef);
    }
public function configureProfiler(ContainerBuilder $container, array $config)
    {
        // Setup the data collector service for Symfony profiler
        $dataCollectorDef = new Definition(PheanstalkDataCollector::class);
        $dataCollectorDef->setPublic(false);
        $dataCollectorDef->addTag('data_collector', ['id' => 'pheanstalk', 'template' => $config['profiler']['template']]);
        $dataCollectorDef->addArgument(new Reference('leezy.pheanstalk.pheanstalk_locator'));

        $container->setDefinition('leezy.pheanstalk.data_collector', $dataCollectorDef);
    }
public function configureProfiler ( ContainerBuilder $ container , array $ config ) { // Setup the data collector service for Symfony profiler $ dataCollectorDef = new Definition ( PheanstalkDataCollector :: class ) ; $ dataCollectorDef -> setPublic ( false ) ; $ dataCollectorDef -> addTag ( 'data_collector' , [ 'id' => 'pheanstalk' , 'template' => $ config [ 'profiler' ] [ 'template' ] ] ) ; $ dataCollectorDef -> addArgument ( new Reference ( 'leezy.pheanstalk.pheanstalk_locator' ) ) ; $ container -> setDefinition ( 'leezy.pheanstalk.data_collector' , $ dataCollectorDef ) ; }
Configures the profiler data collector.

@param ContainerBuilder $container Container
@param array            $config    Configuration
Configures the profiler data collector .