Symfony\Installer\NewCommand::cleanUp PHP Метод

cleanUp() защищенный Метод

Removes all the temporary files and directories created to download the project and removes Symfony-related files that don't make sense in a proprietary project.
protected cleanUp ( )
    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;
    }