Skip to content

Allow pinning an implementation when several are available #223

Closed
@nicolas-grekas

Description

@nicolas-grekas

When vendor/ contains several implementations of e.g. PSR-17, the discovery classes will select one based on some internal order of preference.

But the author of an app should be able to decide which implementation should be preferred.

There are already static methods to configure this, but it'd be great to allow specifying this in composer.json files.

To make this really fast, reading this value should be handled at "composer install" time, when the plugin can generate an ad hoc config file in PHP.

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