-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli
32 lines (26 loc) · 791 Bytes
/
cli
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
/**
* Part of Cli for CodeIgniter
*
* @author PrestTEC <https://github.com/presttec>
* @license MIT License
* @copyright 2015 PrestTEC
* @link https://github.com/presttec/codeigniter-cli
*/
$path = __DIR__;
chdir($path);
/** @const ROOTPATH CodeIgniter project root directory */
define('ROOTPATH', __DIR__ . '/');
require "{$path}/vendor/autoload.php";
// generate CodeIgniter instance
$ci = require "{$path}/ci_instance.php";
class_alias('PrestTEC\CodeIgniter_Cli\Command\Command', 'Command');
class_alias('PrestTEC\CodeIgniter_Cli\Command\Seed', 'Seeder');
class_alias('Aura\Cli\Help', 'Help');
$kernel = (new \Aura\Project_Kernel\Factory)->newKernel(
$path,
'Aura\Cli_Kernel\CliKernel'
);
$status = $kernel();
exit($status);