-
Notifications
You must be signed in to change notification settings - Fork 1
/
yuga
32 lines (21 loc) · 881 Bytes
/
yuga
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
#!/usr/bin/env php
<?php
/**
* Start the application
*/
$app = require __DIR__.'/boot/app.php';
//--------------------------------------------------------------------------
// Load The Yuga Console Application
//--------------------------------------------------------------------------
use Yuga\Console\Application as ConsoleApplication;
$app->setRequestForYugaConsole();
$yuga = ConsoleApplication::start($app);
//--------------------------------------------------------------------------
// Run The Yuga Application
//--------------------------------------------------------------------------
$status = $yuga->run();
//--------------------------------------------------------------------------
// Shutdown The Application
//--------------------------------------------------------------------------
$app->terminate();
exit($status);