Skip to content

Commit e51a3f6

Browse files
committed
[Routing] Route loader service tag
1 parent 0cba12e commit e51a3f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing/custom_route_loader.rst

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ of the service whose ID is ``admin_route_loader``. Your service doesn't have to
127127
extend or implement any special class, but the called method must return a
128128
:class:`Symfony\\Component\\Routing\\RouteCollection` object.
129129

130+
If you're using :ref:`autoconfigure <services-autoconfigure>`, your service should
131+
implement the ``ServiceRouterLoaderInterface`` interface to be tagged automatically.
132+
If you're **not using autoconfigure**, tag it manually with ``routing.route_loader``.
133+
130134
.. note::
131135

132136
The routes defined using service route loaders will be automatically

0 commit comments

Comments
 (0)