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;
 }
Ejemplo n.º 2
0
        } 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>
 /**
  * {@inheritdoc}
  */
 public function getMandatoryRequirements()
 {
     return array_filter(parent::getMandatoryRequirements(), function ($requirement) {
         return !$requirement instanceof PimRequirement;
     });
 }
Ejemplo n.º 4
0
                    <col width="25%" valign="top">
                    <thead>
                        <tr>
                            <th><?php 
echo $translator->trans('process.step.check.table.mandatory');
?>
</th>
                            <th><?php 
echo $translator->trans('process.step.check.table.check');
?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
iterateRequirements($collection->getMandatoryRequirements());
?>
                    </tbody>
                </table>

                <table class="table">
                    <col width="75%" valign="top">
                    <col width="25%" valign="top">
                    <thead>
                        <tr>
                            <th><?php 
echo $translator->trans('process.step.check.table.php');
?>
</th>
                            <th><?php 
echo $translator->trans('process.step.check.table.check');