1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-05 04:37:43 +02:00

Code cleanup and refactoring #5

This commit is contained in:
Awilum
2018-03-25 16:50:32 +03:00
parent d63863b693
commit 6a442f2adb

View File

@@ -18,11 +18,11 @@ define('FLEXTYPE_MINIMUM_PHP', '7.1.3');
// 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 and Register The Auto Loader
// Ensure vendor libraries exist
!is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: <i>composer install</i>");
// Register the auto-loader.
// Register The Auto Loader
$loader = require_once $autoload;
// Initialize Flextype Application
// Init Flextype
Flextype::init();