1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

refactor(flextype): move some core stuff from index file to flextype cor…

This commit is contained in:
Awilum
2022-04-05 20:41:44 +03:00
parent 41848400a5
commit d1596327b7

View File

@@ -15,11 +15,6 @@
namespace Flextype;
/**
* Define the application minimum supported PHP version.
*/
define('FLEXTYPE_MINIMUM_PHP', '7.4.0');
/**
* Define the PATH to the root directory (without trailing slash).
*/
@@ -33,11 +28,6 @@ define('PATH', [
'tmp' => ROOT_DIR . '/var/tmp',
]);
/**
* Check PHP Version
*/
version_compare($ver = PHP_VERSION, $req = FLEXTYPE_MINIMUM_PHP, '<') and exit(sprintf('You are running PHP %s, but Flextype needs at least <strong>PHP %s</strong> to run.', $ver, $req));
/**
* Ensure vendor libraries exist
*/