11 lines
282 B
PHP
11 lines
282 B
PHP
|
<?php
|
||
|
|
||
|
$vendorDir = __DIR__ . '/../../..';
|
||
|
|
||
|
if (file_exists($file = $vendorDir . '/autoload.php')) {
|
||
|
require_once $file;
|
||
|
} else if (file_exists($file = './vendor/autoload.php')) {
|
||
|
require_once $file;
|
||
|
} else {
|
||
|
throw new \RuntimeException("Not found composer autoload");
|
||
|
}
|