-
Notifications
You must be signed in to change notification settings - Fork 3
/
forge
executable file
·45 lines (31 loc) · 1.52 KB
/
forge
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
#!/usr/bin/env php
<?php
//--------------------------------------------------------------------------
// Define The Application Paths
//--------------------------------------------------------------------------
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
/** Define the absolute paths for configured directories. */
define('BASEPATH', realpath(dirname(__FILE__)) .DS);
define('APPPATH', BASEPATH .'app' .DS);
define('WEBPATH', BASEPATH .'webroot' .DS);
//--------------------------------------------------------------------------
// Register The Auto Loader
//--------------------------------------------------------------------------
require BASEPATH .'vendor' .DS .'autoload.php';
//--------------------------------------------------------------------------
// Turn On The Lights
//--------------------------------------------------------------------------
$app = require_once APPPATH .'Boot' .DS .'Start.php';
//--------------------------------------------------------------------------
// Run The Forge Application
//--------------------------------------------------------------------------
$kernel = $app->make('Mini\Console\Contracts\KernelInterface');
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
//--------------------------------------------------------------------------
// Shutdown The Application
//--------------------------------------------------------------------------
$kernel->terminate($input, $status);
exit($status);