Skip to content

Commit

Permalink
Update excep
Browse files Browse the repository at this point in the history
  • Loading branch information
indianmodassir authored Nov 14, 2024
1 parent 2ba9423 commit c70eac3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions excep
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ if (isset($GLOBALS['_composer_autoload_path'])) {

unset($GLOBALS['_composer_autoload_path']);
} else {
foreach([__DIR__.'/../vendor/autoload.php', __DIR__.'/../../vendor/autoload.php'] as $autoloader) {
foreach([__DIR__.'/../vendor/autoload.php', __DIR__.'/../../vendor/autoload.php', __DIR__ . '/vendor/autoload.php'] as $autoloader) {
if (\file_exists($autoloader)) {
define('INSTALLED_AUTOLOAD_EXCEPTION_PATH', $autoloader);
break;
}
}
}

if (!defined('INSTALLED_AUTOLOAD_EXCEPTION_PATH')) {

fwrite(
STDERR,
'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL .
' composer install' . PHP_EOL . PHP_EOL .
'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL
);

die(1);
}

require INSTALLED_AUTOLOAD_EXCEPTION_PATH;
Expand Down

0 comments on commit c70eac3

Please sign in to comment.