src/PHPDish/Bundle/CoreBundle/Command/CheckRequirementsCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $checker = $this->getContainer()->get('phpdish.installer.requirements_checker');
        $checker->setOutput($output);
        $fulfilled = $checker->check($output);

        if (!$fulfilled) {
            throw new RuntimeException(
                'Some system requirements are not fulfilled. Please check output messages and fix them.'
            );
        }

        $output->writeln('<info>Success! Your system can run PHPDish properly.</info>');
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $checker = $this->getContainer()->get('phpdish.installer.requirements_checker');
        $checker->setOutput($output);
        $fulfilled = $checker->check($output);

        if (!$fulfilled) {
            throw new RuntimeException(
                'Some system requirements are not fulfilled. Please check output messages and fix them.'
            );
        }

        $output->writeln('<info>Success! Your system can run PHPDish properly.</info>');
    }
{@inheritdoc}