8000 [Routing] Route loader service tag · symfony/symfony-docs@4aee349 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4aee349

Browse files
committed
[Routing] Route loader service tag
1 parent 8f6a938 commit 4aee349

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing/custom_route_loader.rst

Lines changed: 4 additions & 0 deletions
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 ``RouteLoaderInterface`` 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)
0