Sulu\Bundle\DocumentManagerBundle\Command\InitializeCommand::execute PHP Method

execute() protected method

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)
    {
        $purge = $input->getOption('purge');
        $force = $input->getOption('force');
        if ($purge && false === $force) {
            $question = new ConfirmationQuestion('<question>Are you sure you want to purge ALL the configured workspaces?</>', false);
            if (false === $this->questionHelper->ask($input, $output, $question)) {
                $output->writeln('Cancelled');
                return;
            }
        }
        $this->initializer->initialize($output, $purge);
    }