forked from lawoole/lawoole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
artisan
executable file
·43 lines (32 loc) · 1.13 KB
/
artisan
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
#!/usr/bin/env php
<?php
define('LAWOOLE_START', microtime(true));
/*
|--------------------------------------------------------------------------
| 注册自动加载器
|--------------------------------------------------------------------------
*/
require __DIR__.'/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| 取得应用对象实例
|--------------------------------------------------------------------------
*/
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| 执行 Console 处理
|--------------------------------------------------------------------------
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| 结束处理
|--------------------------------------------------------------------------
*/
$kernel->terminate($input, $status);
exit($status);