diff --git a/routing/service_container_parameters.rst b/routing/service_container_parameters.rst index 5f72f9a205d..2aa2809504a 100644 --- a/routing/service_container_parameters.rst +++ b/routing/service_container_parameters.rst @@ -164,6 +164,36 @@ path): return $routes; +Now make sure that the ``app.route_prefix`` parameter is set somewhere in your +container: + +.. configuration-block:: + + .. code-block:: yaml + + # app/config/config.yml + parameters: + app.route_prefix: 'foo' + + .. code-block:: xml + + + + + + + foo + + + + .. code-block:: php + + // app/config/config.php + $container->setParameter('app.route_prefix', 'foo'); + .. note:: Just like in normal service container configuration files, if you actually