Skip to content

[FrameworkBundle] Add a way to inject event subscribers from the DIC #2012

Closed
@pvcnt

Description

@pvcnt

I've seen we can add event listeners to the event dispatcher directly from the DIC with a kernel.event_listener tag. Is there a reason there is no way to do the same with event subscribers ? A kernel.event_subscriber tag would be very practical IMO.

I can propose a PR since this could be achieved in 20 LOC, but I first want to know if there is a reason explaining why this has not been done yet. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions