mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Allow autoloading from vendor path
This commit is contained in:
parent
e884dc3b53
commit
31b213be7b
@ -3,8 +3,13 @@
|
|||||||
// Init composer autoload
|
// Init composer autoload
|
||||||
call_user_func(function () {
|
call_user_func(function () {
|
||||||
$candidates = [
|
$candidates = [
|
||||||
|
// module in vendor
|
||||||
|
__DIR__ . '/../../../../autoload.php',
|
||||||
|
// module in webroot
|
||||||
__DIR__ . '/../../vendor/autoload.php',
|
__DIR__ . '/../../vendor/autoload.php',
|
||||||
|
// module in webroot
|
||||||
__DIR__ . '/../../../vendor/autoload.php',
|
__DIR__ . '/../../../vendor/autoload.php',
|
||||||
|
// module is webroot (usually during CI installs)
|
||||||
getcwd() . '/vendor/autoload.php',
|
getcwd() . '/vendor/autoload.php',
|
||||||
];
|
];
|
||||||
foreach ($candidates as $candidate) {
|
foreach ($candidates as $candidate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user