DependencyInjection/Compiler/CustomFallbackPass.php
public function process(ContainerBuilder $container)
    {
        $configs = $container->getExtensionConfig('nova_ezseo');

        //@todo: How to do that by SiteAccess
        if (isset($configs[0]['system']['default']['custom_fallback_service'])) {
            $fallbackService = $configs[0]['system']['default']['custom_fallback_service'];
            if ($fallbackService !== null) {
                $container->getDefinition('novactive.novaseobundle.twig_extension')->addMethodCall(
                    "setCustomFallbackService",
                    [new Reference($fallbackService)]
                );
            }
        }
    }
public function process(ContainerBuilder $container)
    {
        $configs = $container->getExtensionConfig('nova_ezseo');

        //@todo: How to do that by SiteAccess
        if (isset($configs[0]['system']['default']['custom_fallback_service'])) {
            $fallbackService = $configs[0]['system']['default']['custom_fallback_service'];
            if ($fallbackService !== null) {
                $container->getDefinition('novactive.novaseobundle.twig_extension')->addMethodCall(
                    "setCustomFallbackService",
                    [new Reference($fallbackService)]
                );
            }
        }
    }
public function process ( ContainerBuilder $ container ) { $ configs = $ container -> getExtensionConfig ( 'nova_ezseo' ) ; //@todo: How to do that by SiteAccess if ( isset ( $ configs [ 0 ] [ 'system' ] [ 'default' ] [ 'custom_fallback_service' ] ) ) { $ fallbackService = $ configs [ 0 ] [ 'system' ] [ 'default' ] [ 'custom_fallback_service' ] ; if ( $ fallbackService !== null ) { $ container -> getDefinition ( 'novactive.novaseobundle.twig_extension' ) -> addMethodCall ( "setCustomFallbackService" , [ new Reference ( $ fallbackService ) ] ) ; } } }
Process the configuration

@param ContainerBuilder $container
Process the configuration