eZ\Bundle\EzPublishMigrationBundle\Command\LegacyStorage\RegenerateUrlAliasesCommand::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)
    {
        $this->checkStorage();
        $action = $input->getArgument('action');
        $this->bulkCount = $input->getArgument('bulk-count');
        if (!isset($this->actionSet[$action])) {
            throw new RuntimeException("Action '{$action}' is not supported, use one of: " . implode(', ', array_keys($this->actionSet)));
        }
        if ($action === 'full' || $action === 'backup-custom') {
            $this->backupCustomLocationAliases();
        }
        if ($action === 'full' || $action === 'backup-global') {
            $this->backupGlobalAliases();
        }
        if ($action === 'full' || $action === 'autogenerate') {
            $this->generateLocationAliases();
        }
        if ($action === 'full' || $action === 'restore-custom') {
            $this->restoreCustomLocationAliases();
        }
        if ($action === 'full' || $action === 'restore-global') {
            $this->restoreGlobalAliases();
        }
    }