Skip to content

Add priority for event subscribers #6413

@nikophil

Description

@nikophil

Currently subscribers don't have priority, so their priority depends on the order the extensions were added in the configuration, or the order the subscribers are added within the extension.

What do you think to add a way to define a priority?

There are two possibilities: create an interface PrioritizedSubscriber or add a new int $priority parameter to the method Runner\Extension\Facade::registerSubscriber()

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature/eventsIssues related to PHPUnit's event systemtype/enhancementA new idea that should be implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions