eZ\Bundle\EzPublishCoreBundle\Command\ReindexCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $iterationCount = $input->getOption('iteration-count');
        $noCommit = $input->getOption('no-commit');
        if (!is_numeric($iterationCount) || (int) $iterationCount < 1) {
            throw new RuntimeException("'--iteration-count' option should be > 0, got '{$iterationCount}'");
        }
        $this->searchIndexer->createSearchIndex($output, intval($iterationCount), empty($noCommit));
    }