Skip to content

Commit 794d98d

Browse files
authored
Merge pull request #150 from ByteInternet/dont-autoload-app-vendor
Don't automatically autoload app vendor autoloader
2 parents 5e734cc + e359c16 commit 794d98d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/hypernode-deploy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
\define('WORKING_DIR', getcwd());
1010
\define('APPLICATION_ROOT', \dirname(__DIR__));
1111

12-
$customAutoLoadPath = WORKING_DIR . '/vendor/autoload.php';
1312
// Allows to specify a custom autoload path to avoid overriding Hipex deploy packages
1413
// when the same packages are used by your application and Hipex Deploy.
1514
if (getenv('DEPLOY_AUTOLOAD_PATH') !== false) {
1615
$customAutoLoadPath = getenv('DEPLOY_AUTOLOAD_PATH');
17-
}
1816

19-
if (file_exists($customAutoLoadPath)) {
20-
require_once $customAutoLoadPath;
17+
if (file_exists($customAutoLoadPath)) {
18+
require_once $customAutoLoadPath;
19+
}
2120
}
2221

22+
2323
/** @var \Composer\Autoload\ClassLoader $loader */
2424
$loader = require_once APPLICATION_ROOT . '/vendor/autoload.php';
2525
if (!array_key_exists('Deployer\\', $loader->getPrefixesPsr4())) {

0 commit comments

Comments
 (0)