Added check in the installer

This commit is contained in:
Sergio Brighenti 2020-04-09 13:10:54 +02:00
parent a99d9a7fc7
commit e100cff3de

View file

@ -78,6 +78,10 @@ $app->get('/', function (Response $response, View $view, Session $session) use (
$session->alert('The required "fileinfo" extension is not loaded.', 'danger');
}
if (!extension_loaded('zip')) {
$session->alert('The required "zip" extension is not loaded.', 'danger');
}
if (!is_writable(__DIR__.'/../resources/cache')) {
$session->alert('The cache folder is not writable ('.__DIR__.'/../resources/cache'.')', 'danger');
}