From 45cd71efda62c858a1e2ef59024378277689dff7 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Thu, 11 Mar 2021 22:37:22 +0000 Subject: [PATCH] Remove version check from bootstrap/autoload.php --- bootstrap/autoload.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index a0749ceda..e5e67b91e 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -11,8 +11,6 @@ declare(strict_types=1); -use Phalcon\Version; - if (!extension_loaded('phalcon')) { throw new Exception( "Phalcon extension isn't installed, follow these instructions to install it: " . @@ -94,9 +92,6 @@ */ defined('ADMIN_LTE_VERSION') || define('ADMIN_LTE_VERSION', '2.3.6'); -/** @const COMPATIBLE_VERSION The compatible Phalcon version. */ -defined('COMPATIBLE_VERSION') || define('COMPATIBLE_VERSION', 3020040); - /** * Register the Composer autoloader (if any) */ @@ -126,10 +121,3 @@ if (file_exists('.phalcon' . DS . 'autoload.php')) { require_once '.phalcon' . DS . 'autoload.php'; } - -if (Version::getId() < COMPATIBLE_VERSION) { - throw new Exception( - "Your Phalcon version isn't compatible with Developer Tools, " . - 'download the latest at: https://phalconphp.com/en/download/linux' - ); -}