text4u
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

artisan 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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);