We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 246b743 commit 815a16cCopy full SHA for 815a16c
bin/docker-hostmanager
@@ -5,7 +5,12 @@ if (PHP_SAPI !== 'cli') {
5
die('Warning: docker-hostmanager must be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL);
6
}
7
8
-require __DIR__.'/../vendor/autoload.php';
+foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../../../autoload.php'] as $file) {
9
+ if (file_exists($file)) {
10
+ require $file;
11
+ break;
12
+ }
13
+}
14
15
use DockerHostManager\Command\SynchronizeHostsCommand;
16
use Symfony\Component\Console\Application;
0 commit comments