Move PHP version check to index.php
This commit is contained in:
parent
81138ce06a
commit
86d1f713f2
|
@ -1,5 +1,10 @@
|
|||
<?php
|
||||
|
||||
// check PHP version
|
||||
if (version_compare(PHP_VERSION, '5.3.6', '<')) {
|
||||
die('Sorry, Pico requires PHP 5.3.6 or above to run!');
|
||||
}
|
||||
|
||||
// load dependencies
|
||||
if(is_file($f = __DIR__ . '/vendor/autoload.php')) {
|
||||
// local composer install
|
||||
|
|
|
@ -271,11 +271,6 @@ class Pico
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
// check PHP version
|
||||
if (version_compare(PHP_VERSION, '5.3.6', '<')) {
|
||||
die('Sorry, Pico requires PHP 5.3.6 or above to run!');
|
||||
}
|
||||
|
||||
// lock Pico
|
||||
$this->locked = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue