function DrupalApplication::find
Same name and namespace in other branches
- main core/lib/Drupal/Core/Command/DrupalApplication.php \Drupal\Core\Command\DrupalApplication::find()
File
-
core/
lib/ Drupal/ Core/ Command/ DrupalApplication.php, line 69
Class
- DrupalApplication
- Customize the Symfony Application for Drupal.
Namespace
Drupal\Core\CommandCode
public function find(string $name) : Command {
try {
$command = parent::find($name);
if ($command instanceof ListCommand || $command instanceof HelpCommand) {
$this->bootstrap();
}
return $command;
} catch (CommandNotFoundException $e) {
if (!$this->bootstrap()) {
throw $e;
}
return parent::find($name);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.