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

progressStart() public method

public progressStart ( $max )
    public function progressStart($max = 0)
    {
        $this->progressBar = $this->createProgressBar($max);
        $this->progressBar->start();
    }

Usage Example

コード例 #1
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return int|null|void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->io->title($this->getDescription());
     $allJournals = $this->getAllJournals();
     $this->io->progressStart(count($allJournals));
     foreach ($allJournals as $journal) {
         $this->normalizeLastIssuesByJournal($journal);
     }
 }
All Usage Examples Of Symfony\Component\Console\Style\SymfonyStyle::progressStart