Bugfixed autoload.php stuff
This commit is contained in:
parent
7ef6aa2581
commit
4b6f199286
@ -1,10 +1,12 @@
|
|||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (file_exists(__DIR__."/../vendor"))
|
echo __DIR__."\n";
|
||||||
|
|
||||||
|
if (is_dir(__DIR__."/../vendor"))
|
||||||
require_once __DIR__."/../vendor/autoload.php";
|
require_once __DIR__."/../vendor/autoload.php";
|
||||||
elseif (file_exists(__DIR__."/../../../vendor"))
|
elseif (file_exists(__DIR__."/../../../autoload.php"))
|
||||||
require_once __DIR__."/../../../vendor/autoload.php";
|
require_once __DIR__."/../../../autoload.php";
|
||||||
else
|
else
|
||||||
die("Could not locate composer vendor/autoload.php");
|
die("Could not locate composer vendor/autoload.php");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user