Can create clients from shell

This commit is contained in:
Pierre
2018-05-07 18:50:50 +02:00
parent 97ef188167
commit 0b5019d487
5 changed files with 104 additions and 12 deletions

View File

@ -47,9 +47,9 @@ define("DBprefix", $cs->config->get("dbprefix"));
unset($db);
//Add token object
$tokens = new APIClients();
$cs->register("tokens", $tokens);
unset($tokens);
$clients = new APIClients();
$cs->register("clients", $clients);
unset($clients);
//Include models
foreach(glob(PROJECT_PATH."classes/models/*.php") as $classFile){