src/Command/SelfUpdateCommand.php
protected function cleanupOldBackups($rollbackDir)
    {
        $finder = $this->getOldInstallationFinder($rollbackDir);

        $fileSystem = new Filesystem;
        foreach ($finder as $file) {
            $file = (string) $file;
            $this->getIO()->writeError('<info>Removing: ' . $file . '</info>');
            $fileSystem->remove($file);
        }
    }
protected function cleanupOldBackups($rollbackDir)
    {
        $finder = $this->getOldInstallationFinder($rollbackDir);

        $fileSystem = new Filesystem;
        foreach ($finder as $file) {
            $file = (string) $file;
            $this->getIO()->writeError('<info>Removing: ' . $file . '</info>');
            $fileSystem->remove($file);
        }
    }
protected function cleanupOldBackups ( $ rollbackDir ) { $ finder = $ this -> getOldInstallationFinder ( $ rollbackDir ) ; $ fileSystem = new Filesystem ; foreach ( $ finder as $ file ) { $ file = ( string ) $ file ; $ this -> getIO ( ) -> writeError ( '<info>Removing: ' . $ file . '</info>' ) ; $ fileSystem -> remove ( $ file ) ; } }
Clean the backup directory.

@param string $rollbackDir The backup directory.

@return void
Clean the backup directory .