protected function checkStep(InputInterface $input, OutputInterface $output) { $output->writeln('<info>Oro requirements check:</info>'); if (!class_exists('OroRequirements')) { require_once $this->getContainer()->getParameter('kernel.root_dir') . DIRECTORY_SEPARATOR . 'OroRequirements.php'; } $collection = new \OroRequirements(); $this->renderTable($collection->getMandatoryRequirements(), 'Mandatory requirements', $output); $this->renderTable($collection->getPhpIniRequirements(), 'PHP settings', $output); $this->renderTable($collection->getOroRequirements(), 'Oro specific requirements', $output); $this->renderTable($collection->getRecommendations(), 'Optional recommendations', $output); if (count($collection->getFailedRequirements())) { throw new \RuntimeException('Some system requirements are not fulfilled. Please check output messages and fix them.'); } $output->writeln(''); return $this; }
} else { echo $translator->trans('process.step.check.phpchanges'); } ?> </li> <?php } ?> </ul> </div> <?php } ?> <?php $requirements = array('mandatory' => $collection->getMandatoryRequirements(), 'php' => $collection->getPhpIniRequirements(), 'oro' => $collection->getOroRequirements(), 'cli' => $collection->getCliRequirements(), 'optional' => $collection->getRecommendations()); foreach ($requirements as $type => $requirement) { ?> <table class="table"> <col width="75%" valign="top"> <col width="25%" valign="top"> <thead> <tr> <th><?php echo $translator->trans('process.step.check.table.' . $type); ?> </th> <th><?php echo $translator->trans('process.step.check.table.check'); ?> </th>
<col width="25%" valign="top"> <thead> <tr> <th><?php echo $translator->trans('process.step.check.table.optional'); ?> </th> <th><?php echo $translator->trans('process.step.check.table.check'); ?> </th> </tr> </thead> <tbody> <?php iterateRequirements($collection->getRecommendations()); ?> </tbody> </table> </div> <div class="button-set"> <div class="pull-right"> <?php if (count($majorProblems) || count($minorProblems)) { ?> <a href="install.php" class="button icon-reset"> <span><?php echo $translator->trans('process.button.refresh'); ?> </span> </a>