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