artisan 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Register The Auto Loader
  6. |--------------------------------------------------------------------------
  7. |
  8. | Composer provides a convenient, automatically generated class loader
  9. | for our application. We just need to utilize it! We'll require it
  10. | into the script here so that we do not have to worry about the
  11. | loading of any our classes "manually". Feels great to relax.
  12. |
  13. */
  14. require __DIR__.'/bootstrap/autoload.php';
  15. $app = require_once __DIR__.'/bootstrap/app.php';
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Run The Artisan Application
  19. |--------------------------------------------------------------------------
  20. |
  21. | When we run the console application, the current CLI command will be
  22. | executed in this console and the response sent back to a terminal
  23. | or another output device for the developers. Here goes nothing!
  24. |
  25. */
  26. $status = $app->make('Illuminate\Contracts\Console\Kernel')->handle(
  27. new Symfony\Component\Console\Input\ArgvInput,
  28. new Symfony\Component\Console\Output\ConsoleOutput
  29. );
  30. /*
  31. |--------------------------------------------------------------------------
  32. | Shutdown The Application
  33. |--------------------------------------------------------------------------
  34. |
  35. | Once Artisan has finished running. We will fire off the shutdown events
  36. | so that any final work may be done by the application before we shut
  37. | down the process. This is the last thing to happen to the request.
  38. |
  39. */
  40. exit($status);