class UpdateCommand in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand
- 8.2 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand
- 8.3 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand
- 8.4 src/Command/UpdateCommand.php \Drupal\lightning_core\Command\UpdateCommand
Hierarchy
- class \Drupal\lightning_core\Command\UpdateCommand extends \Drupal\Console\Core\Command\Command
Expanded class hierarchy of UpdateCommand
1 string reference to 'UpdateCommand'
1 service uses UpdateCommand
File
- src/
Command/ UpdateCommand.php, line 11
Namespace
Drupal\lightning_core\CommandView source
class UpdateCommand extends Command {
/**
* The update manager service.
*
* @var \Drupal\lightning_core\UpdateManager
*/
protected $updateManager;
/**
* UpdateCommand constructor.
*
* @param UpdateManager $update_manager
* The update manager service.
*/
public function __construct(UpdateManager $update_manager) {
parent::__construct('update:lightning');
$this->updateManager = $update_manager;
}
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$io = new DrupalStyle($input, $output);
$this->updateManager
->executeAllInConsole($io);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UpdateCommand:: |
protected | property | The update manager service. | |
UpdateCommand:: |
protected | function | ||
UpdateCommand:: |
public | function | UpdateCommand constructor. |