Skip to content

Commit

Permalink
Update console
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch committed Aug 19, 2021
1 parent 7882e5d commit bc4198d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

ob_get_clean();

if (file_exists($a = dirname(__DIR__) . '/vendor/autoload.php')) {
if (file_exists($a = getcwd() . '/vendor/autoload.php')) {
include $a;
} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) {
include $a;
} elseif (file_exists($a = __DIR__ . '/../../../../vendor/autoload.php')) {
include $a;
} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) {
} elseif (file_exists($a = __DIR__ . '/../autoload.php')) {
include $a;
} else {
fwrite(STDERR, 'Cannot locate autoloader; please run "composer install"' . PHP_EOL);
Expand Down

0 comments on commit bc4198d

Please sign in to comment.