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

Skip to content

[Cookbook][EventDispatcher] fix build #5792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions cookbook/event_dispatcher/event_listener.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ Listeners and subscribers can be used in the same application indistinctly. The
decision to use either of them is usually a matter of personal taste. However,
there are some minor advantages for each of them:

* **Subscribers are easier to reuse** because the knowledge of the events is kept
in the class rather than in the service definition. This is the reason why
Symfony uses subscribers internally;
* **Listeners are more flexible** because bundles can enable or disable each of
them conditionally depending on some configuration value.

Debugging Event Listeners
-------------------------

Expand All @@ -274,9 +280,3 @@ its name:
.. code-block:: bash

$ php app/console debug:event-dispatcher kernel.exception
=======
* **Subscribers are easier to reuse** because the knowledge of the events is kept
in the class rather than in the service definition. This is the reason why
Symfony uses subscribers internally;
* **Listeners are more flexible** because bundles can enable or disable each of
them conditionally depending on some configuration value.
2 changes: 1 addition & 1 deletion reference/constraints/IsFalse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Also see :doc:`IsTrue <IsTrue>`.
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `message`_ |
| | - `payload`_ |
| | - `payload`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\IsFalse` |
+----------------+-----------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/IsNull.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Also see :doc:`NotNull <NotNull>`.
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `message`_ |
| | - `payload`_ |
| | - `payload`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\IsNull` |
+----------------+-----------------------------------------------------------------------+
Expand Down