pastebin

Paste Search Dynamic
Recent pastes
carbon
  1. #!/usr/bin/env php
  2. <?php
  3.  
  4. $dir = __DIR__.'/..';
  5.  
  6. if (!file_exists($dir.'/autoload.php')) {
  7.     $dir = __DIR__.'/../vendor';
  8. }
  9.  
  10. if (!file_exists($dir.'/autoload.php')) {
  11.     $dir = __DIR__.'/../../..';
  12. }
  13.  
  14. if (!file_exists($dir.'/autoload.php')) {
  15.     echo 'Autoload not found.';
  16.     exit(1);
  17. }
  18.  
  19. require $dir.'/autoload.php';
  20.  
  21. exit((new CarbonCliInvoker())(...$argv) ? 0 : 1);
Parsed in 0.034 seconds