Skip to content

Ability to add custom fallback site alias resolvers #66

@bomoko

Description

@bomoko

Following from the discussion here drush-ops/drush#5273 (and, sorry it has taken me so long to get to this) - it would be really useful for the site-alias manager to support fallback resolution via events.

The suggestion is that we allow client code to register events with the SAM and if an alias cannot be resolved, we give the client the option of resolving it for themselves.

In the attached POC I've used the Symfony EventDispatcher component to achieve this - but am quite keen to get design/code guidance on this to get something like this into the project.

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