public function actionUpdate()
 {
     $query = $this->db->table('addons')->where('type = ? AND deletedAt IS NULL', Addon::TYPE_COMPOSER);
     foreach ($query as $row) {
         $this->addonUpdaterService->updateAddon($row->id);
         $this->writeln('Updating addon "' . $row->name . '".');
     }
 }
 /**
  * @param int
  */
 public function actionCheck($addonId)
 {
     if (!$this->addon) {
         $this->error('Addon not found.');
     }
     try {
         $this->addonUpdaterService->updateAddon($this->addon->id);
         $this->flashMessage('Versions have been updated.');
     } catch (\Exception $e) {
         $this->flashMessage('Version importing failed. Try again later.', 'error');
         $this->redirect(':Detail:', $this->addon->id);
     }
     $this->redirect(':Detail:', $this->addon->id);
 }