/**
* {@inheritdoc}
*/
public function rollback()
{
if (!$this->mapping->isLoaded()) {
return;
}
$packageName = $this->containingPackage->getName();
$this->mappings->remove($this->mapping->getRepositoryPath(), $packageName);
foreach ($this->mapping->listRepositoryPaths() as $repositoryPath) {
$this->mappingsByResource->remove($repositoryPath, $packageName);
$this->conflictDetector->release($repositoryPath, $packageName);
}
// Unload after iterating, otherwise the paths are gone
$this->mapping->unload();
}