Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Support providing a custom root #27

@karoun

Description

@karoun

Our project stores PHP dependencies in vendor/composer (since we share vendor/ between JavaScript and PHP). Better handling for custom roots was introduced because of #10, but doubly-nested vendor directories still aren't supported because the root is assumed to be the parent directory of vendor-dir:

$vendor = $composer->getConfig()->get('vendor-dir', '/');
$this->vendor = $vendor;
$this->root = dirname($vendor);

Should a config key be introduced to fix this, or would re-purposing relativeAutoloadRoot be sufficient?

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