Skip to content

Commit c0a5215

Browse files
committed
Update dependencies
1 parent 7dd3e79 commit c0a5215

File tree

3 files changed

+221
-194
lines changed

3 files changed

+221
-194
lines changed

app/SymfonyRequirements.php

Lines changed: 9 additions & 3 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(
@@ -638,7 +644,7 @@ function_exists('posix_isatty'),
638644
}
639645

640646
$this->addRecommendation(
641-
class_exists('Locale'),
647+
extension_loaded('intl'),
642648
'intl extension should be available',
643649
'Install and enable the <strong>intl</strong> extension (used for validators).'
644650
);

app/check.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
}
4343

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

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

@@ -80,7 +80,7 @@ function get_error_message(Requirement $requirement, $lineSize)
8080
return;
8181
}
8282

83-
$errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL;
83+
$errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL;
8484
$errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL;
8585

8686
return $errorMessage;
@@ -121,8 +121,8 @@ function echo_block($style, $title, $message)
121121
echo PHP_EOL.PHP_EOL;
122122

123123
echo_style($style, str_repeat(' ', $width).PHP_EOL);
124-
echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL);
125-
echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL);
124+
echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL);
125+
echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL);
126126
echo_style($style, str_repeat(' ', $width).PHP_EOL);
127127
}
128128

0 commit comments

Comments
 (0)