public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('profiler') || !$container->hasDefinition('twig')) {
            return;
        }

        $container->register('contentful.delivery.profiler_controller', ProfilerController::class)
            ->setArguments([
                new Reference('profiler'),
                new Reference('twig'),
            ])
            ->setPublic(\true)
            ->addTag('controller.service_arguments')
        ;
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('profiler') || !$container->hasDefinition('twig')) {
            return;
        }

        $container->register('contentful.delivery.profiler_controller', ProfilerController::class)
            ->setArguments([
                new Reference('profiler'),
                new Reference('twig'),
            ])
            ->setPublic(\true)
            ->addTag('controller.service_arguments')
        ;
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> hasDefinition ( 'profiler' ) || ! $ container -> hasDefinition ( 'twig' ) ) { return ; } $ container -> register ( 'contentful.delivery.profiler_controller' , ProfilerController :: class ) -> setArguments ( [ new Reference ( 'profiler' ) , new Reference ( 'twig' ) , ] ) -> setPublic ( \ true ) -> addTag ( 'controller.service_arguments' ) ; }
Loads the definition for the ProfilerController when the profiler and twig are present.

@param ContainerBuilder $container
Loads the definition for the ProfilerController when the profiler and twig are present .