Hi guys,
I just wanted to mention, that If I want to change the default vendor composer directory (vendor) to something like (vendor/composer) to group the files that are got by installing (composer install) from other package managers like bower, a hard coded path is found in
vendor/composer/aura/project-kernel/src/Factory.php on line 135
And the error that was thrown is failed to open stream: No such file or directory in /shared-folder/nextdating/profile-manager/vendor/composer/aura/project-kernel/src/Factory.php on line 135.
The snippet code from project-kernel/src/Factory.php is:
public function newKernel(
$path,
$class,
$auto_resolve = ContainerBuilder::ENABLE_AUTO_RESOLVE
) {
require "{$path}/config/_env.php";
$di = $this->newContainer(
$path,
$_ENV['AURA_CONFIG_MODE'],
"{$path}/composer.json",
"{$path}/vendor/composer/installed.json", <------------- here is the hard coded path
$auto_resolve
);
return $di->newInstance($class);
}
It's better to not hard code the paths, this will leave a flexibility for example in my case
"config": {
"vendor-dir": "vendor/composer"
},
to be used in the composer.json file.
Best regards,
Arkan