getFailedRequirements(); $minorProblems = $collection->getFailedRecommendations(); $translator->addLoader('yml', new YamlFileLoader()); $translator->addResource( 'yml', __DIR__.'/../src/Chamilo/InstallerBundle/Resources/translations/messages.'.$locale.'.yml', $locale ); function iterateRequirements(array $collection, $translator) { foreach ($collection as $requirement) : ?> isFulfilled()) : ?> isOptional()) : ?> getTestMessage(); ?> isFulfilled()) : ?>
getOutput(); ?>
isFulfilled()) { echo '

'.$translator->trans( 'process.step.check.requirement_status.ok' ).'

'; } else { if (!$requirement->isOptional()) { echo '

'.$translator->trans( 'process.step.check.requirement_status.danger' ).'

'; } else { echo '

'.$translator->trans( 'process.step.check.requirement_status.warning' ).'

'; } $requirement->getHelpHtml(); echo '
'; } ?> <?php echo $translator->trans('title'); ?>

trans('process.step.check.header'); ?>

$collection->getMandatoryRequirements(), 'php' => $collection->getPhpIniRequirements(), 'chamilo' => $collection->getChamiloRequirements(), 'cli' => $collection->getCliRequirements(), 'optional' => $collection->getRecommendations(), ); foreach ($requirements as $type => $requirement) : ?>
trans('process.step.check.table.'.$type); ?> trans('process.step.check.table.status'); ?>