first commit
This commit is contained in:
23
vendor/nesbot/carbon/bin/carbon
vendored
Normal file
23
vendor/nesbot/carbon/bin/carbon
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Carbon\Cli\Invoker;
|
||||
|
||||
$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 Invoker())(...$argv) ? 0 : 1);
|
4
vendor/nesbot/carbon/bin/carbon.bat
vendored
Normal file
4
vendor/nesbot/carbon/bin/carbon.bat
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
@ECHO OFF
|
||||
setlocal DISABLEDELAYEDEXPANSION
|
||||
SET BIN_TARGET=%~dp0/carbon
|
||||
php "%BIN_TARGET%" %*
|
Reference in New Issue
Block a user