Skip to content

Commit 45cd71e

Browse files
committed
Remove version check from bootstrap/autoload.php
1 parent 61c3221 commit 45cd71e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

bootstrap/autoload.php

-12
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
declare(strict_types=1);
1313

14-
use Phalcon\Version;
15-
1614
if (!extension_loaded('phalcon')) {
1715
throw new Exception(
1816
"Phalcon extension isn't installed, follow these instructions to install it: " .
@@ -94,9 +92,6 @@
9492
*/
9593
defined('ADMIN_LTE_VERSION') || define('ADMIN_LTE_VERSION', '2.3.6');
9694

97-
/** @const COMPATIBLE_VERSION The compatible Phalcon version. */
98-
defined('COMPATIBLE_VERSION') || define('COMPATIBLE_VERSION', 3020040);
99-
10095
/**
10196
* Register the Composer autoloader (if any)
10297
*/
@@ -126,10 +121,3 @@
126121
if (file_exists('.phalcon' . DS . 'autoload.php')) {
127122
require_once '.phalcon' . DS . 'autoload.php';
128123
}
129-
130-
if (Version::getId() < COMPATIBLE_VERSION) {
131-
throw new Exception(
132-
"Your Phalcon version isn't compatible with Developer Tools, " .
133-
'download the latest at: https://phalconphp.com/en/download/linux'
134-
);
135-
}

0 commit comments

Comments
 (0)