Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd9b4121

Browse files
committed
[Routing] Invokable route loader services
1 parent3e5d4a5 commitd9b4121

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)

[8]ページ先頭

©2009-2025 Movatter.jp