Skip to content

Expose Console/Application::$dispatcher #42336

Closed
@xepozz

Description

@xepozz

Because of https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/Console/Application.php#L67 isn't final it can be extended.
It would be great to have an access to the $dispatcher property in child class.
Now we need to override setDispatcher() method to have an access to the dispatcher.
Also it would be great if you patched another versions too. At least 5.1 and greater.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions