Skip to content

Commit d251414

Browse files
committed
Update
1 parent cb29413 commit d251414

File tree

4 files changed

+296
-243
lines changed

4 files changed

+296
-243
lines changed

app/SymfonyRequirements.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@ public function __construct()
446446
);
447447
}
448448

449+
$this->addRequirement(
450+
function_exists('iconv'),
451+
'iconv() must be available',
452+
'Install and enable the <strong>iconv</strong> extension.'
453+
);
454+
449455
$this->addRequirement(
450456
function_exists('json_encode'),
451457
'json_encode() must be available',
@@ -546,10 +552,10 @@ function_exists('simplexml_import_dom'),
546552
require_once __DIR__.'/../vendor/autoload.php';
547553

548554
try {
549-
$r = new \ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
555+
$r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
550556

551557
$contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
552-
} catch (\ReflectionException $e) {
558+
} catch (ReflectionException $e) {
553559
$contents = '';
554560
}
555561
$this->addRecommendation(

app/check.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$symfonyRequirements = new SymfonyRequirements();
77
$iniPath = $symfonyRequirements->getPhpIniConfigPath();
88

9-
echo_title('Symfony2 Requirements Checker');
9+
echo_title('Symfony Requirements Checker');
1010

1111
echo '> PHP is using the following php.ini file:'.PHP_EOL;
1212
if ($iniPath) {
@@ -42,9 +42,9 @@
4242
}
4343

4444
if ($checkPassed) {
45-
echo_block('success', 'OK', 'Your system is ready to run Symfony2 projects');
45+
echo_block('success', 'OK', 'Your system is ready to run Symfony projects');
4646
} else {
47-
echo_block('error', 'ERROR', 'Your system is not ready to run Symfony2 projects');
47+
echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects');
4848

4949
echo_title('Fix the following mandatory requirements', 'red');
5050

0 commit comments

Comments
 (0)