protected function cleanUp()
{
$this->fs->remove(dirname($this->downloadedFilePath));
try {
$licenseFile = array($this->projectDir . '/LICENSE');
$upgradeFiles = glob($this->projectDir . '/UPGRADE*.md');
$changelogFiles = glob($this->projectDir . '/CHANGELOG*.md');
$filesToRemove = array_merge($licenseFile, $upgradeFiles, $changelogFiles);
$this->fs->remove($filesToRemove);
} catch (\Exception $e) {
// don't throw an exception in case any of the Symfony-related files cannot
// be removed, because this is just an enhancement, not something mandatory
// for the project
}
return $this;
}