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:
10
bin/flextype
10
bin/flextype
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user