set_progress() публичный Метод

public set_progress ( $task_lang_key, $task_number )
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function set_progress($task_lang_key, $task_number)
 {
     parent::set_progress($task_lang_key, $task_number);
     $this->send_response();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function set_progress($task_lang_key, $task_number)
 {
     parent::set_progress($task_lang_key, $task_number);
     if ($this->progress_bar !== null) {
         $this->progress_bar->setProgress($this->current_task_progress);
         $this->progress_bar->setMessage($this->current_task_name);
     } else {
         $this->output->writeln(sprintf('[%3d/%-3d] %s', $this->current_task_progress, $this->task_progress_count, $this->current_task_name));
     }
 }