Add composer install check

This commit is contained in:
Niklas Keller
2016-03-12 16:30:37 +01:00
parent 68afa4e0e9
commit 5b96cedea1

View File

@@ -9,6 +9,18 @@ use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Psr\Log\LoggerInterface;
if (!file_exists(__DIR__ . "/../vendor/autoload.php")) {
echo <<<HELP
You need to install the composer dependencies.
composer install
HELP;
exit(-1);
}
require __DIR__ . "/../vendor/autoload.php";
$commands = [