From c70eac32021dba58dc7a5f2bad31a3329219691c Mon Sep 17 00:00:00 2001 From: Shahzada Modassir Date: Fri, 15 Nov 2024 02:46:47 +0530 Subject: [PATCH] Update excep --- excep | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/excep b/excep index c264f20..c460d8b 100644 --- a/excep +++ b/excep @@ -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;