mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-03 14:32:40 +00:00
Fix CLI bootstrap problem
This commit is contained in:
parent
fa6d641634
commit
3ba82b7c6d
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ ini_set("memory_limit", "-1");
|
||||||
ini_set("max_execution_time", "0");
|
ini_set("max_execution_time", "0");
|
||||||
|
|
||||||
if (\PHP_SAPI === "cli") {
|
if (\PHP_SAPI === "cli") {
|
||||||
// initialize the CLI; this automatically handles --help and --version
|
// initialize the CLI; this automatically handles --help and --version else {
|
||||||
|
Arsse::$obj = new Factory;
|
||||||
$cli = new CLI;
|
$cli = new CLI;
|
||||||
// handle other CLI requests; some do not require configuration
|
// handle other CLI requests; some do not require configuration
|
||||||
$exitStatus = $cli->dispatch();
|
$exitStatus = $cli->dispatch();
|
||||||
|
|
Loading…
Reference in a new issue