expressolivretools / artisan @ 3e379cec
Histórico | Ver | Anotar | Baixar (1,07 KB)
1 | 3e379cec | Alexandre Correia | #!/usr/bin/env php |
---|---|---|---|
2 | <?php |
||
3 | |||
4 | use Symfony\Component\Console\Input\ArgvInput; |
||
5 | use Symfony\Component\Console\Output\ConsoleOutput; |
||
6 | |||
7 | /* |
||
8 | |-------------------------------------------------------------------------- |
||
9 | | Create The Application |
||
10 | |-------------------------------------------------------------------------- |
||
11 | | |
||
12 | | First we need to get an application instance. This creates an instance |
||
13 | | of the application / container and bootstraps the application so it |
||
14 | | is ready to receive HTTP / Console requests from the environment. |
||
15 | | |
||
16 | */ |
||
17 | |||
18 | $app = require __DIR__.'/bootstrap/app.php'; |
||
19 | |||
20 | /* |
||
21 | |-------------------------------------------------------------------------- |
||
22 | | Run The Artisan Application |
||
23 | |-------------------------------------------------------------------------- |
||
24 | | |
||
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! |
||
28 | | |
||
29 | */ |
||
30 | |||
31 | $kernel = $app->make( |
||
32 | 'Illuminate\Contracts\Console\Kernel' |
||
33 | ); |
||
34 | |||
35 | exit($kernel->handle(new ArgvInput, new ConsoleOutput)); |