Updated to respect PHPmd

This commit is contained in:
2019-04-17 01:29:08 +02:00
parent 3102855c98
commit f7001060ea
5 changed files with 16 additions and 13 deletions

View File

@ -34,16 +34,16 @@ class AdminPanel
*/
public static function getInstance()
{
if (!isset(AdminPanel::$instance)) {
if (!isset(self::$instance)) {
define("ROOT", dirname(dirname(__DIR__)));
$ap = AdminPanel::$instance = new self();
$ap = self::$instance = new self();
$ap->root = dirname(__DIR__);
$ap->settings = jsonc_decode(dirname($ap->root) . "/config.jsonc", false);
$ap->loader = new FilesystemLoader();
$ap->addLoaderFolder($ap->root . "/AdminPanel/Twig");
// $ap->setLoader(new FilesystemLoader());
}
return AdminPanel::$instance;
return self::$instance;
}
/** @var Logger $logger */