Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added the versionadded directive
  • Loading branch information
javiereguiluz committed Feb 16, 2018
commit 1666cbd2f7e0ab9fb54f6606bee676e7b6fbb792
4 changes: 4 additions & 0 deletions event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ listener class:
method (which makes event listeners invokable);
#. If the ``_invoke()`` method is not defined either, throw an exception.

.. versionadded:: 4.1
The support of the ``__invoke()`` method to create invokable event listeners
was introduced in Symfony 4.1.

.. note::

There is an optional attribute for the ``kernel.event_listener`` tag called
Expand Down