5 |--------------------------------------------------------------------------
6 | Register The Auto Loader
7 |--------------------------------------------------------------------------
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 our classes "manually". Feels great to relax.
16 require __DIR__.'/bootstrap/autoload.php';
18 $app = require_once __DIR__.'/bootstrap/app.php';
21 |--------------------------------------------------------------------------
22 | Run The Artisan Application
23 |--------------------------------------------------------------------------
25 | When we run the console application, the current CLI command will be
26 | executed in this console and the response sent back to a terminal
27 | or another output device for the developers. Here goes nothing!
31 $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
33 $status = $kernel->handle(
34 $input = new Symfony\Component\Console\Input\ArgvInput,
35 new Symfony\Component\Console\Output\ConsoleOutput
39 |--------------------------------------------------------------------------
40 | Shutdown The Application
41 |--------------------------------------------------------------------------
43 | Once Artisan has finished running. We will fire off the shutdown events
44 | so that any final work may be done by the application before we shut
45 | down the process. This is the last thing to happen to the request.
49 $kernel->terminate($input, $status);