Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support having a different vendor path. #43

Open
Sheco opened this issue Dec 23, 2014 · 1 comment
Open

Support having a different vendor path. #43

Sheco opened this issue Dec 23, 2014 · 1 comment

Comments

@Sheco
Copy link

Sheco commented Dec 23, 2014

You can specify an alternate vendor path in the composer.json config.

"config": {
    "vendor-dir": "/path/to/vendor"
},

We need to update bin/IndexGenerator.php to read the composer.json and then update the following lines:

bin/IndexGenerator.php:237

$this->loader = require 'vendor/autoload.php';

bin/IndexGenerator:382

$autoloadNamespaces = require 'vendor/composer/autoload_namespaces.php';

bin/IndexGenerator:417

$classMap = require 'vendor/composer/autoload_classmap.php';
@mariuswilms
Copy link

I'm using the lithium framework together with composer. Lithium expects the libraries to be placed inside a libraries folder instead of vendor. Working on many lithium projects, having a non-standard vendor directory isn't uncommon.

https://github.com/composer/installers/blob/master/src/Composer/Installers/LithiumInstaller.php#L7

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

No branches or pull requests

2 participants