aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/SymfonyRequirements.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/SymfonyRequirements.php')
-rw-r--r--app/SymfonyRequirements.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/SymfonyRequirements.php b/app/SymfonyRequirements.php
index abaf0c17..28b0dcdb 100644
--- a/app/SymfonyRequirements.php
+++ b/app/SymfonyRequirements.php
@@ -447,6 +447,12 @@ class SymfonyRequirements extends RequirementCollection
447 } 447 }
448 448
449 $this->addRequirement( 449 $this->addRequirement(
450 function_exists('iconv'),
451 'iconv() must be available',
452 'Install and enable the <strong>iconv</strong> extension.'
453 );
454
455 $this->addRequirement(
450 function_exists('json_encode'), 456 function_exists('json_encode'),
451 'json_encode() must be available', 457 'json_encode() must be available',
452 'Install and enable the <strong>JSON</strong> extension.' 458 'Install and enable the <strong>JSON</strong> extension.'
@@ -546,10 +552,10 @@ class SymfonyRequirements extends RequirementCollection
546 require_once __DIR__.'/../vendor/autoload.php'; 552 require_once __DIR__.'/../vendor/autoload.php';
547 553
548 try { 554 try {
549 $r = new \ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); 555 $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
550 556
551 $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); 557 $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
552 } catch (\ReflectionException $e) { 558 } catch (ReflectionException $e) {
553 $contents = ''; 559 $contents = '';
554 } 560 }
555 $this->addRecommendation( 561 $this->addRecommendation(