private function doRollback(OutputInterface $output) { $result = $this->updater->rollback(); if (!$result) { throw new \RuntimeException('Could not rollback.'); } $output->writeln('Successfully rolled back.'); return 0; }