diff --git a/index.php b/index.php index b4acda43..4ab0274a 100755 --- a/index.php +++ b/index.php @@ -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 PHP %s 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: composer install"); -// Register the auto-loader. +// Register The Auto Loader $loader = require_once $autoload; -// Initialize Flextype Application +// Init Flextype Flextype::init();