src/DependencyInjection/SonataPageExtension.php
public function configurePageServices(ContainerBuilder $container, array $config)
    {
        // set the default page service to use when no page type has been set. (backward compatibility)
        $definition = $container->getDefinition('sonata.page.page_service_manager');
        $definition->addMethodCall('setDefault', [new Reference($config['default_page_service'])]);
    }
public function configurePageServices(ContainerBuilder $container, array $config)
    {
        // set the default page service to use when no page type has been set. (backward compatibility)
        $definition = $container->getDefinition('sonata.page.page_service_manager');
        $definition->addMethodCall('setDefault', [new Reference($config['default_page_service'])]);
    }
public function configurePageServices ( ContainerBuilder $ container , array $ config ) { // set the default page service to use when no page type has been set. (backward compatibility) $ definition = $ container -> getDefinition ( 'sonata.page.page_service_manager' ) ; $ definition -> addMethodCall ( 'setDefault' , [ new Reference ( $ config [ 'default_page_service' ] ) ] ) ; }
Configures the page services.

@param ContainerBuilder $container Container builder
@param array            $config    An array of bundle configuration
Configures the page services .