summaryrefslogtreecommitdiff
path: root/includes/engelsystem_provider.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/engelsystem_provider.php')
-rw-r--r--includes/engelsystem_provider.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php
index edfae705..ff682871 100644
--- a/includes/engelsystem_provider.php
+++ b/includes/engelsystem_provider.php
@@ -4,6 +4,8 @@ use Engelsystem\Config\Config;
use Engelsystem\Database\Db;
use Engelsystem\Exceptions\Handler as ExceptionHandler;
use Engelsystem\Http\Request;
+use Engelsystem\Renderer\HtmlEngine;
+use Engelsystem\Renderer\Renderer;
/**
* This file includes all needed functions, connects to the db etc.
@@ -43,12 +45,20 @@ $request::setInstance($request);
* Check for maintenance
*/
if ($config->get('maintenance')) {
- echo file_get_contents(__DIR__ . '/../public/maintenance.html');
+ echo file_get_contents(__DIR__ . '/../templates/maintenance.html');
die();
}
/**
+ * Initialize renderer
+ */
+$renderer = new Renderer();
+$renderer->addRenderer(new HtmlEngine());
+Renderer::setInstance($renderer);
+
+
+/**
* Register error handler
*/
$errorHandler = new ExceptionHandler();