Skip to content

Commit 6309eda

Browse files
committed
Merge remote-tracking branch 'upstream/4.4' into 4.4
* upstream/4.4: [symfony#11337] Added a deprecation directive [Routing] Route loader service tag
2 parents 68414b1 + 6d4b9f2 commit 6309eda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

routing/custom_route_loader.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,15 @@ 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 class should
215+
implement the :class:`Symfony\\Bundle\\FrameworkBundle\\Routing\\RouteLoaderInterface`
216+
interface to be tagged automatically. If you're **not using autoconfigure**,
217+
tag it manually with ``routing.route_loader``.
218+
219+
.. deprecated:: 4.4
220+
221+
Not tagging or implementing your route loader was deprecated in Symfony 4.4.
222+
214223
.. note::
215224

216225
The routes defined using service route loaders will be automatically

0 commit comments

Comments
 (0)