Skip to content

Commit d9b4121

Browse files
committed
[Routing] Invokable route loader services
1 parent 3e5d4a5 commit d9b4121

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
@@ -133,6 +133,15 @@ extend or implement any special class, but the called method must return a
133133
cached by the framework. So whenever your service should load new routes,
134134
don't forget to clear the cache.
135135

136+
.. tip::
137+
138+
If your service is invokable, you don't need to precise the method to use.
139+
140+
.. versionadded:: 4.3
141+
142+
The support of the ``__invoke()`` method to create invokable route loader
143+
services was introduced in Symfony 4.3.
144+
136145
Creating a custom Loader
137146
------------------------
138147

0 commit comments

Comments
 (0)