You are here

public function UpdateCommand::__construct in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand::__construct()
  2. 8.2 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand::__construct()
  3. 8.3 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand::__construct()
  4. 8.4 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand::__construct()

UpdateCommand constructor.

Parameters

UpdateManager $update_manager: The update manager service.

File

src/Command/UpdateCommand.php, line 26

Class

UpdateCommand

Namespace

Drupal\lightning_core\Command

Code

public function __construct(UpdateManager $update_manager) {
  parent::__construct('update:lightning');
  $this->updateManager = $update_manager;
}