artisan 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env php
  2. <?php
  3. use Symfony\Component\Console\Input\ArgvInput;
  4. use Symfony\Component\Console\Output\ConsoleOutput;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Create The Application
  8. |--------------------------------------------------------------------------
  9. |
  10. | First we need to get an application instance. This creates an instance
  11. | of the application / container and bootstraps the application so it
  12. | is ready to receive HTTP / Console requests from the environment.
  13. |
  14. */
  15. $app = require __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. $kernel = $app->make(
  27. 'Illuminate\Contracts\Console\Kernel'
  28. );
  29. exit($kernel->handle(new ArgvInput, new ConsoleOutput));