Paragonik/paragonik-backend/vendor/nesbot/carbon/bin/carbon
2019-12-07 16:47:41 +01:00

22 lines
378 B
PHP

#!/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);