Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8397b67

Browse filesBrowse files
fancywebwouterj
authored andcommitted
[Routing] Route loader service tag
1 parent 369d792 commit 8397b67
Copy full SHA for 8397b67

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎routing/custom_route_loader.rst

Copy file name to clipboardExpand all lines: routing/custom_route_loader.rst
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.