class LightningCoreCommands in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/Commands/LightningCoreCommands.php \Drupal\lightning_core\Commands\LightningCoreCommands
- 8.2 src/Commands/LightningCoreCommands.php \Drupal\lightning_core\Commands\LightningCoreCommands
- 8.3 src/Commands/LightningCoreCommands.php \Drupal\lightning_core\Commands\LightningCoreCommands
- 8.4 src/Commands/LightningCoreCommands.php \Drupal\lightning_core\Commands\LightningCoreCommands
Hierarchy
- class \Drupal\lightning_core\Commands\LightningCoreCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of LightningCoreCommands
1 string reference to 'LightningCoreCommands'
1 service uses LightningCoreCommands
File
- src/
Commands/ LightningCoreCommands.php, line 8
Namespace
Drupal\lightning_core\CommandsView source
class LightningCoreCommands extends DrushCommands {
/**
* The update manager service.
*
* @var \Drupal\lightning_core\UpdateManager
*/
protected $updateManager;
/**
* LightningCoreCommands constructor.
*
* @param \Drupal\lightning_core\UpdateManager $update_manager
* The update manager service.
*/
public function __construct(UpdateManager $update_manager) {
$this->updateManager = $update_manager;
}
/**
* Executes Lightning configuration updates from a specific version.
*
* @command update:lightning
*
* @usage update:lightning
* Runs all available configuration updates.
*/
public function update() {
$io = new DrushStyle($this
->input(), $this
->output());
$this->updateManager
->executeAllInConsole($io);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LightningCoreCommands:: |
protected | property | The update manager service. | |
LightningCoreCommands:: |
public | function | Executes Lightning configuration updates from a specific version. | |
LightningCoreCommands:: |
public | function | LightningCoreCommands constructor. |