From e359c160827bc17e9e7b84d099e9ec9d9831ad8c Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Mon, 24 Mar 2025 12:03:52 +0100 Subject: [PATCH] Don't automatically autoload app vendor autoloader --- bin/hypernode-deploy.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/hypernode-deploy.php b/bin/hypernode-deploy.php index a2e73f7..49545ec 100644 --- a/bin/hypernode-deploy.php +++ b/bin/hypernode-deploy.php @@ -9,17 +9,17 @@ \define('WORKING_DIR', getcwd()); \define('APPLICATION_ROOT', \dirname(__DIR__)); -$customAutoLoadPath = WORKING_DIR . '/vendor/autoload.php'; // Allows to specify a custom autoload path to avoid overriding Hipex deploy packages // when the same packages are used by your application and Hipex Deploy. if (getenv('DEPLOY_AUTOLOAD_PATH') !== false) { $customAutoLoadPath = getenv('DEPLOY_AUTOLOAD_PATH'); -} -if (file_exists($customAutoLoadPath)) { - require_once $customAutoLoadPath; + if (file_exists($customAutoLoadPath)) { + require_once $customAutoLoadPath; + } } + /** @var \Composer\Autoload\ClassLoader $loader */ $loader = require_once APPLICATION_ROOT . '/vendor/autoload.php'; if (!array_key_exists('Deployer\\', $loader->getPrefixesPsr4())) {