artisan 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /*
  16. |--------------------------------------------------------------------------
  17. | Turn On The Lights
  18. |--------------------------------------------------------------------------
  19. |
  20. | We need to illuminate PHP development, so let's turn on the lights.
  21. | This bootstrap the framework and gets it ready for use, then it
  22. | will load up this application so that we can run it and send
  23. | the responses back to the browser and delight these users.
  24. |
  25. */
  26. $app = require_once __DIR__.'/start.php';
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Load The Artisan Console Application
  30. |--------------------------------------------------------------------------
  31. |
  32. | We'll need to run the script to load and return the Artisan console
  33. | application. We keep this in its own script so that we will load
  34. | the console application independent of running commands which
  35. | will allow us to fire commands from Routes when we want to.
  36. |
  37. */
  38. $artisan = Illuminate\Console\Application::start($app);
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Run The Artisan Application
  42. |--------------------------------------------------------------------------
  43. |
  44. | When we run the console application, the current CLI command will be
  45. | executed in this console and the response sent back to a terminal
  46. | or another output device for the developers. Here goes nothing!
  47. |
  48. */
  49. $artisan->run();