Skip to content

Allow hook priority #244

@claudiu-cristea

Description

@claudiu-cristea

Problem

I would like to be able to determine the order in which some hooks are running (see also #113). As hooks are relying on Symfony event dispatcher, which supports priorities, this should be doable.

Proposal

Allow to pass an additional and optional priority integer value to the @hook annotation, for instance

@hook post-command commandname 300

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