mirror of
https://github.com/flextype/flextype.git
synced 2025-01-17 12:48:31 +01:00
Added new constant - RAWILUM_MINIMUM_PHP #5
This commit is contained in:
parent
eb4c9048ff
commit
59bd61e245
@ -10,8 +10,13 @@
|
||||
|
||||
namespace Rawilum;
|
||||
|
||||
/**
|
||||
* Define the application's minimum supported PHP version.
|
||||
*/
|
||||
define('RAWILUM_MINIMUM_PHP', '7.1.3');
|
||||
|
||||
// Check PHP Version
|
||||
version_compare($ver = PHP_VERSION, $req = '7.1.3', '<') and exit(sprintf('You are running PHP %s, but Rawilum needs at least <strong>PHP %s</strong> to run.', $ver, $req));
|
||||
version_compare($ver = PHP_VERSION, $req = RAWILUM_MINIMUM_PHP, '<') and exit(sprintf('You are running PHP %s, but Rawilum needs at least <strong>PHP %s</strong> to run.', $ver, $req));
|
||||
|
||||
// Ensure vendor libraries exist and Register The Auto Loader
|
||||
!is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: <i>composer install</i>");
|
||||
|
Loading…
x
Reference in New Issue
Block a user