If APP_ROOT is not set when detecting vendor, its probably the parent
This commit is contained in:
parent
780a721492
commit
731558329e
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ function detectAndLoadVendor($path = __DIR__): void
|
|||
define('VENDOR_PATH', $fileInfo->getRealPath());
|
||||
|
||||
require_once VENDOR_PATH . '/autoload.php';
|
||||
if(!defined('APP_ROOT')) {
|
||||
define('APP_ROOT', VENDOR_PATH . "/../");
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue