function DrupalApplication::getDefaultCommands
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Command/DrupalApplication.php \Drupal\Core\Command\DrupalApplication::getDefaultCommands()
File
-
core/
lib/ Drupal/ Core/ Command/ DrupalApplication.php, line 52
Class
- DrupalApplication
- Customize the Symfony Application for Drupal.
Namespace
Drupal\Core\CommandCode
protected function getDefaultCommands() : array {
$default_commands = parent::getDefaultCommands();
// Commands registered here are available even if Drupal does not boot.
// Only register commands here that do not need to bootstrap Drupal.
$default_commands[] = new QuickStartCommand();
$default_commands[] = new InstallCommand($this->classloader);
$default_commands[] = new CacheRebuildCommand($this->classloader);
$default_commands[] = new ServerCommand($this->classloader);
$default_commands[] = new GenerateTheme();
return $default_commands;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.