You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
378 B
21 lines
378 B
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$dir = __DIR__.'/..';
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
$dir = __DIR__.'/../vendor';
|
|
}
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
$dir = __DIR__.'/../../..';
|
|
}
|
|
|
|
if (!file_exists($dir.'/autoload.php')) {
|
|
echo 'Autoload not found.';
|
|
exit(1);
|
|
}
|
|
|
|
require $dir.'/autoload.php';
|
|
|
|
exit((new \Carbon\Cli\Invoker())(...$argv) ? 0 : 1);
|
|
|