composer update. Security updates.
This commit is contained in:
parent
91628a49da
commit
7879cb1029
|
@ -446,6 +446,12 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->addRequirement(
|
||||||
|
function_exists('iconv'),
|
||||||
|
'iconv() must be available',
|
||||||
|
'Install and enable the <strong>iconv</strong> extension.'
|
||||||
|
);
|
||||||
|
|
||||||
$this->addRequirement(
|
$this->addRequirement(
|
||||||
function_exists('json_encode'),
|
function_exists('json_encode'),
|
||||||
'json_encode() must be available',
|
'json_encode() must be available',
|
||||||
|
@ -546,10 +552,10 @@ class SymfonyRequirements extends RequirementCollection
|
||||||
require_once __DIR__.'/../vendor/autoload.php';
|
require_once __DIR__.'/../vendor/autoload.php';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$r = new \ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
|
$r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
|
||||||
|
|
||||||
$contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
|
$contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
|
||||||
} catch (\ReflectionException $e) {
|
} catch (ReflectionException $e) {
|
||||||
$contents = '';
|
$contents = '';
|
||||||
}
|
}
|
||||||
$this->addRecommendation(
|
$this->addRecommendation(
|
||||||
|
|
|
@ -6,7 +6,7 @@ $lineSize = 70;
|
||||||
$symfonyRequirements = new SymfonyRequirements();
|
$symfonyRequirements = new SymfonyRequirements();
|
||||||
$iniPath = $symfonyRequirements->getPhpIniConfigPath();
|
$iniPath = $symfonyRequirements->getPhpIniConfigPath();
|
||||||
|
|
||||||
echo_title('Symfony2 Requirements Checker');
|
echo_title('Symfony Requirements Checker');
|
||||||
|
|
||||||
echo '> PHP is using the following php.ini file:'.PHP_EOL;
|
echo '> PHP is using the following php.ini file:'.PHP_EOL;
|
||||||
if ($iniPath) {
|
if ($iniPath) {
|
||||||
|
@ -42,9 +42,9 @@ foreach ($symfonyRequirements->getRecommendations() as $req) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($checkPassed) {
|
if ($checkPassed) {
|
||||||
echo_block('success', 'OK', 'Your system is ready to run Symfony2 projects');
|
echo_block('success', 'OK', 'Your system is ready to run Symfony projects');
|
||||||
} else {
|
} else {
|
||||||
echo_block('error', 'ERROR', 'Your system is not ready to run Symfony2 projects');
|
echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects');
|
||||||
|
|
||||||
echo_title('Fix the following mandatory requirements', 'red');
|
echo_title('Fix the following mandatory requirements', 'red');
|
||||||
|
|
||||||
|
|
835
composer.lock
generated
835
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue