mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-16 12:00:50 +01:00
Added pre-install dependency check
This commit is contained in:
parent
ef23c5645c
commit
88b73febf9
13
index.php
13
index.php
@ -3,6 +3,18 @@
|
|||||||
use Illuminate\Contracts\Http\Kernel;
|
use Illuminate\Contracts\Http\Kernel;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
$installing_file_exists = file_exists(__DIR__ . '/INSTALLING');
|
||||||
|
|
||||||
|
if ($installing_file_exists) {
|
||||||
|
$required_extensions = array('bcmath', 'ctype', 'curl', 'dom', 'fileinfo', 'json', 'mbstring', 'openssl', 'pcre', 'pdo', 'tokenizer', 'xml');
|
||||||
|
|
||||||
|
foreach ($required_extensions as $ext) {
|
||||||
|
if (!extension_loaded($ext)) {
|
||||||
|
throw new Exception('PHP extension ' . $ext . ' is not installed on your system');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
define('LARAVEL_START', microtime(true));
|
define('LARAVEL_START', microtime(true));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -53,3 +65,4 @@ $response = tap($kernel->handle(
|
|||||||
))->send();
|
))->send();
|
||||||
|
|
||||||
$kernel->terminate($request, $response);
|
$kernel->terminate($request, $response);
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user