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

Support providing a custom root #27

Open
karoun opened this issue Jun 25, 2018 · 1 comment
Open

Support providing a custom root #27

karoun opened this issue Jun 25, 2018 · 1 comment

Comments

@karoun
Copy link
Contributor

karoun commented Jun 25, 2018

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?

@facebookxx
Copy link

a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants