Nav apraksta

artisan 1.6KB

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