Skip to content

Commit

Permalink
Remove version check from bootstrap/autoload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Mar 11, 2021
1 parent 61c3221 commit 45cd71e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bootstrap/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: " .
Expand Down Expand Up @@ -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)
*/
Expand Down Expand Up @@ -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'
);
}

0 comments on commit 45cd71e

Please sign in to comment.