Symfony\Component\Console\Style\SymfonyStyle::progressFinish PHP Method

progressFinish() public method

public progressFinish ( )
    public function progressFinish()
    {
        $this->getProgressBar()->finish();
        $this->newLine(2);
        $this->progressBar = null;
    }

Usage Example

Esempio n. 1
0
 private function clearCache(SymfonyStyle $io, $env)
 {
     $io->section("Clearing cache ({$env})...");
     $io->progressStart(1);
     $input = $this->getEnvsInput($env);
     $command = $this->getApplication()->find('cache:clear');
     $cmdOutput = new BufferedOutput();
     $returnCode = $command->run($input, $cmdOutput);
     if ($returnCode !== 0) {
         $io->error("cache:clear command failed. You may need to manually delete the cache folders.");
         return;
     }
     $io->progressFinish();
 }
All Usage Examples Of Symfony\Component\Console\Style\SymfonyStyle::progressFinish