2013-08-03 14:47:47 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$vendorDir = __DIR__ . '/../../..';
|
|
|
|
|
|
|
|
if (file_exists($file = $vendorDir . '/autoload.php')) {
|
|
|
|
require_once $file;
|
2020-06-01 03:50:39 +03:00
|
|
|
} elseif (file_exists($file = './vendor/autoload.php')) {
|
2013-08-03 14:47:47 +04:00
|
|
|
require_once $file;
|
|
|
|
} else {
|
|
|
|
throw new \RuntimeException("Not found composer autoload");
|
2020-06-01 03:50:39 +03:00
|
|
|
}
|