Skip to content

Commit 3629890

Browse files
committed
minor #11342 [Routing] Use double colon in custom routing example (fancyweb)
This PR was merged into the 4.2 branch. Discussion ---------- [Routing] Use double colon in custom routing example #eufossa Using single column is deprecated since Symfony 4.1. @wouterj Commits ------- 2ffb166 [Routing] Use double column in custom routing example
2 parents b991e8b + 2ffb166 commit 3629890

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routing/custom_route_loader.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ and configure the service and method to call:
9898
9999
# config/routes.yaml
100100
admin_routes:
101-
resource: 'admin_route_loader:loadRoutes'
101+
resource: 'admin_route_loader::loadRoutes'
102102
type: service
103103
104104
.. code-block:: xml
@@ -110,7 +110,7 @@ and configure the service and method to call:
110110
xsi:schemaLocation="http://symfony.com/schema/routing
111111
https://symfony.com/schema/routing/routing-1.0.xsd">
112112
113-
<import resource="admin_route_loader:loadRoutes" type="service"/>
113+
<import resource="admin_route_loader::loadRoutes" type="service"/>
114114
</routes>
115115
116116
.. code-block:: php
@@ -119,7 +119,7 @@ and configure the service and method to call:
119119
namespace Symfony\Component\Routing\Loader\Configurator;
120120
121121
return function (RoutingConfigurator $routes) {
122-
$routes->import('admin_route_loader:loadRoutes', 'service');
122+
$routes->import('admin_route_loader::loadRoutes', 'service');
123123
};
124124
125125
In this example, the routes are loaded by calling the ``loadRoutes()`` method

0 commit comments

Comments
 (0)