-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check php-extension requirements not only on installation (e.g. when …
…php version was changed) Signed-off-by: Michael Kaufmann <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Froxlor\Install; | ||
|
||
class Requirements | ||
{ | ||
const REQUIRED_VERSION = '7.4.0'; | ||
const REQUIRED_EXTENSIONS = ['session', 'ctype', 'xml', 'filter', 'posix', 'mbstring', 'curl', 'gmp', 'json', 'gd']; | ||
const SUGGESTED_EXTENSIONS = ['bcmath', 'zip', 'gnupg']; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "Froxlor/base.html.twig" %} | ||
|
||
{% block content %} | ||
<div class="container my-auto"> | ||
<div class="alert alert-warning fade show" role="alert"> | ||
<h4 class="alert-heading"> | ||
Whoops! | ||
</h4> | ||
<p>It looks like you are missing some of the required php requirements.</p> | ||
<p>Please ensure that the following extension for the currently used php version ({{ phpversion }}) are installed:</p> | ||
<pre>{{ missing_extensions }}</pre> | ||
<hr> | ||
<p class="mt-1 text-center"> | ||
<a href="" class="btn btn-primary" title="Reload page">Reload</a> | ||
</p> | ||
</div> | ||
</div> | ||
{% endblock %} |