Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
find autoload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Stark committed Jul 20, 2018
1 parent 3d25b40 commit fadbe5c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion mcc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@
define('CLI_NAME', 'Memcached Cli');
define('CLI_VERSION', '1.0.0-beta1');

require __DIR__ . '/vendor/autoload.php';
$autoloaders = [
__DIR__ . '/vendor/autoload.php',
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../vendor/autoload.php'
];

foreach ($autoloaders as $file) {
echo $file . PHP_EOL;
if (file_exists($file)) {
require $file;
break;
}
}


use fortabbit\MemcachedCli\Application;
use fortabbit\MemcachedCli\Commands;
Expand Down

0 comments on commit fadbe5c

Please sign in to comment.