From 8397b67933d9d76d11657576a1e4beef06faa3e7 Mon Sep 17 00:00:00 2001 From: fancyweb Date: Sun, 7 Apr 2019 11:08:30 +0200 Subject: [PATCH] [Routing] Route loader service tag --- routing/custom_route_loader.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing/custom_route_loader.rst b/routing/custom_route_loader.rst index ebd24d80b14..8cde9c3af03 100644 --- a/routing/custom_route_loader.rst +++ b/routing/custom_route_loader.rst @@ -127,6 +127,10 @@ of the service whose ID is ``admin_route_loader``. Your service doesn't have to extend or implement any special class, but the called method must return a :class:`Symfony\\Component\\Routing\\RouteCollection` object. +If you're using :ref:`autoconfigure `, your service should +implement the ``RouteLoaderInterface`` interface to be tagged automatically. +If you're **not using autoconfigure**, tag it manually with ``routing.route_loader``. + .. note:: The routes defined using service route loaders will be automatically