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