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

Skip to content

Commit 214b181

Browse files
fancywebwouterj
authored andcommitted
[Routing] Route loader service tag
1 parent 2c2e00c commit 214b181

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
@@ -211,6 +211,10 @@ of the service whose ID is ``admin_route_loader``. Your service doesn't have to
211211
extend or implement any special class, but the called method must return a
212212
:class:`Symfony\\Component\\Routing\\RouteCollection` object.
213213

214+
If you're using :ref:`autoconfigure <services-autoconfigure>`, your service should
215+
implement the ``RouteLoaderInterface`` interface to be tagged automatically.
216+
If you're **not using autoconfigure**, tag it manually with ``routing.route_loader``.
217+
214218
.. note::
215219

216220
The routes defined using service route loaders will be automatically

0 commit comments

Comments
 (0)
0