Skip to content

Commit 38e9f40

Browse files
committed
feature #11333 [Routing] Invokable route loader services (fancyweb)
This PR was merged into the master branch. Discussion ---------- [Routing] Invokable route loader services #eufossa doc for symfony/symfony#30933 Also the notation with one column has been deprecated so I updated this part as well. Commits ------- d9b4121 [Routing] Invokable route loader services
2 parents fed4d14 + d9b4121 commit 38e9f40

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy