src/DependencyInjection/SonataPageExtension.php
/**
     * Registers service parameters from bundle configuration.
     *
     * @param ContainerBuilder $container Container builder
     * @param array            $config    Array of configuration
     */
Registers service parameters from bundle configuration.
@param ContainerBuilder $container Container builder
@param array            $config    Array of configuration
Registers service parameters from bundle configuration . @param ContainerBuilder $container Container builder @param array $config Array of configuration
public function registerParameters(ContainerBuilder $container, array $config)
    {
        $container->setParameter('sonata.page.site.class', $config['class']['site']);
        $container->setParameter('sonata.page.block.class', $config['class']['block']);
        $container->setParameter('sonata.page.snapshot.class', $config['class']['snapshot']);
        $container->setParameter('sonata.page.page.class', $config['class']['page']);
        $container->setParameter('sonata.page.admin.site.entity', $config['class']['site']);
        $container->setParameter('sonata.page.admin.block.entity', $config['class']['block']);
        $container->setParameter('sonata.page.admin.snapshot.entity', $config['class']['snapshot']);
        $container->setParameter('sonata.page.admin.page.entity', $config['class']['page']);
        $container->setParameter('sonata.page.router_auto_register.enabled', $config['router_auto_register']['enabled']);
        $container->setParameter('sonata.page.router_auto_register.priority', $config['router_auto_register']['priority']);
    }
public function registerParameters ( ContainerBuilder $ container , array $ config ) { $ container -> setParameter ( 'sonata.page.site.class' , $ config [ 'class' ] [ 'site' ] ) ; $ container -> setParameter ( 'sonata.page.block.class' , $ config [ 'class' ] [ 'block' ] ) ; $ container -> setParameter ( 'sonata.page.snapshot.class' , $ config [ 'class' ] [ 'snapshot' ] ) ; $ container -> setParameter ( 'sonata.page.page.class' , $ config [ 'class' ] [ 'page' ] ) ; $ container -> setParameter ( 'sonata.page.admin.site.entity' , $ config [ 'class' ] [ 'site' ] ) ; $ container -> setParameter ( 'sonata.page.admin.block.entity' , $ config [ 'class' ] [ 'block' ] ) ; $ container -> setParameter ( 'sonata.page.admin.snapshot.entity' , $ config [ 'class' ] [ 'snapshot' ] ) ; $ container -> setParameter ( 'sonata.page.admin.page.entity' , $ config [ 'class' ] [ 'page' ] ) ; $ container -> setParameter ( 'sonata.page.router_auto_register.enabled' , $ config [ 'router_auto_register' ] [ 'enabled' ] ) ; $ container -> setParameter ( 'sonata.page.router_auto_register.priority' , $ config [ 'router_auto_register' ] [ 'priority' ] ) ; }
Registers service parameters from bundle configuration.
Registers service parameters from bundle configuration .