src/EcommerceBundle/PageBundle/DependencyInjection/EcommerceBundleSonataPageExtension.php
/**
     * Configures the page services.
     *
     * @param ContainerBuilder $container Container builder
     * @param array            $config    An array of bundle configuration
     */
Configures the page services.
@param ContainerBuilder $container Container builder
@param array            $config    An array of bundle configuration
Configures the page services . @param ContainerBuilder $container Container builder @param array $config An array of bundle configuration
public function configurePageServices(ContainerBuilder $container, array $config)
    {
        $definition = $container->getDefinition('sonata.page.page_service_manager');
        $definition->addMethodCall('setDefault', [new Reference($config['default_page_service'])]);
    }
public function configurePageServices ( ContainerBuilder $ container , array $ config ) { $ definition = $ container -> getDefinition ( 'sonata.page.page_service_manager' ) ; $ definition -> addMethodCall ( 'setDefault' , [ new Reference ( $ config [ 'default_page_service' ] ) ] ) ; }
Configures the page services.
Configures the page services .
// set the default page service to use when no page type has been set. (backward compatibility)