-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartisan
More file actions
47 lines (37 loc) · 1.2 KB
/
artisan
File metadata and controls
47 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env php
<?php
require_once __DIR__.'/vendor/autoload.php';
use LaravelDoctrine\ORM\DoctrineServiceProvider;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
dirname(__DIR__)
))->bootstrap();
$app = new Skimpy\Application(
dirname(__DIR__)
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
\Skimpy\Lumen\Exceptions\Handler::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
\Skimpy\Lumen\Console\Kernel::class
);
$app->configure('database');
$app->configure('doctrine');
$app->register(DoctrineServiceProvider::class);
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(
'Illuminate\Contracts\Console\Kernel'
);
exit($kernel->handle(new ArgvInput, new ConsoleOutput));