Skip to content

Feature: merge ProjectVersioner\Reader\Composer and ProjectVersioner\Reader\ComposerPackage into one reader #1

@ivarb

Description

@ivarb

I think ProjectVersioner\Reader\Composer and ProjectVersioner\Reader\ComposerPackage could easily be merged together, where an optional constructor argument would supply a specific package version to read. If omitted, a version over all packages (i.e. composer.lock hash) would be returned.

This leaves more room for a Composer reader that reads the composer.json file and returns the version value if defined in that file. Since version it's optional for composer.json and never present in composer.lock you cannot rely on it, but in most cases it will be the version one wants to retrieve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions