-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cli.php
executable file
·27 lines (22 loc) · 937 Bytes
/
cli.php
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
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Jingga
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
\ob_start();
require_once __DIR__ . '/phpOMS/Autoloader.php';
/** @var array{log:array{file:array{path:string}}, app:array{path:string, default:array{id:string, app:string, org:int, lang:string}, domains:array}, page:array{root:string, https:bool}, language:string[], db:array{core:array{masters:array{admin:array{db:string, database:string}, insert:array{db:string, database:string}, select:array{db:string, database:string}, update:array{db:string, database:string}, delete:array{db:string, database:string}, schema:array{db:string, database:string}}}}} $config */
$config = require_once __DIR__ . '/config.php';
$App = new \Cli\CliApplication($config);
$App->run($argv);
if (\ob_get_level() > 0) {
\ob_end_flush();
}