Skip to content

Commit

Permalink
feature #11333 [Routing] Invokable route loader services (fancyweb)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Apr 7, 2019
2 parents fed4d14 + d9b4121 commit 38e9f40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions routing/custom_route_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ extend or implement any special class, but the called method must return a
cached by the framework. So whenever your service should load new routes,
don't forget to clear the cache.

.. tip::

If your service is invokable, you don't need to precise the method to use.

.. versionadded:: 4.3

The support of the ``__invoke()`` method to create invokable route loader
services was introduced in Symfony 4.3.

Creating a custom Loader
------------------------

Expand Down

0 comments on commit 38e9f40

Please sign in to comment.