/** * {@inheritdoc} */ public function execute() { if ($this->rootModuleFile->hasPathMapping($this->repositoryPath)) { $this->previousMapping = $this->rootModuleFile->getPathMapping($this->repositoryPath); $this->rootModuleFile->removePathMapping($this->repositoryPath); } }
/** * {@inheritdoc} */ public function rollback() { if ($this->previousMapping) { $this->rootModuleFile->addPathMapping($this->previousMapping); } else { $this->rootModuleFile->removePathMapping($this->mapping->getRepositoryPath()); } }