forked from phanbook/phanbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli
executable file
·32 lines (27 loc) · 799 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
/**
* Phanbook : Delightfully simple forum and Q&A software
*
* Licensed under The GNU License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @link http://phanbook.com Phanbook Project
* @since 1.0.0
* @author Phanbook <hello@phanbook.com>
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
use Phanbook\Common\Application;
// Register The Auto Loader
require __DIR__ . '/bootstrap/autoloader.php';
// Create the Application
$app = new Application('cli');
$console = $app->getApplication();
$console->setArgs($argv, $argc);
try {
$console->run();
} catch (Exception $e) {
fwrite(STDERR, $e->getMessage() . PHP_EOL);
exit(1);
}