-
Notifications
You must be signed in to change notification settings - Fork 0
/
artisan
36 lines (31 loc) · 919 Bytes
/
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
#!/usr/bin/env php
<?php
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Laravel\Lumen\Application;
use Laravel\Lumen\Console\Kernel;
use Illuminate\Console\Scheduling\Schedule;
$app = require __DIR__.'/backend/bootstrap.php';
$app->singleton(
\Illuminate\Contracts\Console\Kernel::class,
function()use($app){
return new class($app) extends Kernel{
public $commands = [
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
//
}
};
}
);
$kernel = $app->make(
'Illuminate\Contracts\Console\Kernel'
);
exit($kernel->handle(new ArgvInput, new ConsoleOutput));