Skip to content

Reword kernel.event_listener description #4680

Closed
@wouterj

Description

@wouterj

In the DIC tags reference, we should reword the description of the kernel.event_listener tag. Currently, it can be understood wrongly as something that's only meant for core things.

Thanks to our IRC friends for reporting this issue!

ChairmanOfBoard: What I stumped at, was that it seemed like kernel.event_listener was just for core events, and that somehow I felt maybe one should create their own event dispatcher outside the main one
Lumbendil: no
Lumbendil: what made you think such a thing? :)
ChairmanOfBoard: This doc
ChairmanOfBoard: http://symfony.com/doc/current/reference/dic_tags.html
ChairmanOfBoard: 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.
ChairmanOfBoard: I don't think I thought enough about that line, and took it the wrong way
ChairmanOfBoard: Also the name "kernel.event_listener" makes it sound like its just for kernel events

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionEventDispatcheractionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions