Skip to content

Reworded the intro of reference/dic_tags.rst #8650

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 2 commits into from
Nov 16, 2017
Merged
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
17 changes: 7 additions & 10 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
The Dependency Injection Tags
Built-in Symfony Service Tags
=============================

Dependency Injection Tags are little strings that can be applied to a service
to "flag" it to be used in some special way. For example, if you have a
service that you would like to register as a listener to one of Symfony's
core events, you can flag it with the ``kernel.event_listener`` tag.
:doc:`Service tags </service_container/tags>` are the mechanism used by the
:doc:`Dependency Injection component </components/dependency_injection>` to flag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DependencyInjection component

services which require a special processing, such as console commands or Twig
extensions.

You can learn a little bit more about "tags" by reading the ":doc:`/service_container/tags`"
article.

Below is information about all of the tags available inside Symfony. There
may also be tags in other bundles you use that aren't listed here.
These are the most common tags provided by Symfony components, but in your
application there could be more tags available provided by third-party bundles:

======================================== ========================================================================
Tag Name Usage
Expand Down