Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. #!/usr/bin/env php
  2.  
  3. <?php
  4.  
  5.  
  6. define('LARAVEL_START', microtime(true));
  7.  
  8.  
  9.  
  10. /*
  11.  
  12. |--------------------------------------------------------------------------
  13.  
  14. | Register The Auto Loader
  15.  
  16. |--------------------------------------------------------------------------
  17.  
  18. |
  19.  
  20. | Composer provides a convenient, automatically generated class loader
  21.  
  22. | for our application. We just need to utilize it! We'll require it
  23.  
  24. | into the script here so that we do not have to worry about the
  25.  
  26. | loading of any our classes "manually". Feels great to relax.
  27.  
  28. |
  29.  
  30. */
  31.  
  32.  
  33.  
  34. require __DIR__.'/vendor/autoload.php';
  35.  
  36.  
  37.  
  38. $app = require_once __DIR__.'/bootstrap/app.php';
  39.  
  40.  
  41.  
  42. /*
  43.  
  44. |--------------------------------------------------------------------------
  45.  
  46. | Run The Artisan Application
  47.  
  48. |--------------------------------------------------------------------------
  49.  
  50. |
  51.  
  52. | When we run the console application, the current CLI command will be
  53.  
  54. | executed in this console and the response sent back to a terminal
  55.  
  56. | or another output device for the developers. Here goes nothing!
  57.  
  58. |
  59.  
  60. */
  61.  
  62.  
  63.  
  64. $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
  65.  
  66.  
  67.  
  68. $status = $kernel->handle(
  69.  
  70. $input = new Symfony\Component\Console\Input\ArgvInput,
  71.  
  72. new Symfony\Component\Console\Output\ConsoleOutput
  73.  
  74. );
  75.  
  76.  
  77.  
  78. /*
  79.  
  80. |--------------------------------------------------------------------------
  81.  
  82. | Shutdown The Application
  83.  
  84. |--------------------------------------------------------------------------
  85.  
  86. |
  87.  
  88. | Once Artisan has finished running, we will fire off the shutdown events
  89.  
  90. | so that any final work may be done by the application before we shut
  91.  
  92. | down the process. This is the last thing to happen to the request.
  93.  
  94. |
  95.  
  96. */
  97.  
  98.  
  99.  
  100. $kernel->terminate($input, $status);
  101.  
  102.  
  103.  
  104. exit($status);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement