|
|
@ -3,6 +3,9 @@
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Bootstrap application
|
|
|
|
* Bootstrap application
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Engelsystem\Http\UrlGeneratorInterface;
|
|
|
|
|
|
|
|
|
|
|
|
require __DIR__ . '/application.php';
|
|
|
|
require __DIR__ . '/application.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -16,8 +19,11 @@ require __DIR__ . '/includes.php';
|
|
|
|
* Check for maintenance
|
|
|
|
* Check for maintenance
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
if ($app->get('config')->get('maintenance')) {
|
|
|
|
if ($app->get('config')->get('maintenance')) {
|
|
|
|
|
|
|
|
http_response_code(503);
|
|
|
|
|
|
|
|
$url = $app->get(UrlGeneratorInterface::class);
|
|
|
|
$maintenance = file_get_contents(__DIR__ . '/../resources/views/layouts/maintenance.html');
|
|
|
|
$maintenance = file_get_contents(__DIR__ . '/../resources/views/layouts/maintenance.html');
|
|
|
|
$maintenance = str_replace('%APP_NAME%', $app->get('config')->get('app_name'), $maintenance);
|
|
|
|
$maintenance = str_replace('%APP_NAME%', $app->get('config')->get('app_name'), $maintenance);
|
|
|
|
|
|
|
|
$maintenance = str_replace('%ASSETS_PATH%', $url->to(''), $maintenance);
|
|
|
|
echo $maintenance;
|
|
|
|
echo $maintenance;
|
|
|
|
die();
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
|
|
|