src/DependencyInjection/Compiler/ReplaceTemplatingGlobalsDefinitionPass.php
public function process(ContainerBuilder $container)
    {
        if ($container->hasDefinition('templating.globals')) {
            foreach ($container->getDefinition('templating.globals')->getMethodCalls() as $methodCall) {
                list($method, $arguments) = $methodCall;
                $container->getDefinition('phpmentors_pageflower.conversational_global_variables')->addMethodCall($method, $arguments);
            }

            $container->setAlias('templating.globals', 'phpmentors_pageflower.conversational_global_variables');
        }
    }
public function process(ContainerBuilder $container)
    {
        if ($container->hasDefinition('templating.globals')) {
            foreach ($container->getDefinition('templating.globals')->getMethodCalls() as $methodCall) {
                list($method, $arguments) = $methodCall;
                $container->getDefinition('phpmentors_pageflower.conversational_global_variables')->addMethodCall($method, $arguments);
            }

            $container->setAlias('templating.globals', 'phpmentors_pageflower.conversational_global_variables');
        }
    }
{@inheritdoc}