You are here

public function ApplicationDescription::getCommands in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Descriptor/ApplicationDescription.php \Symfony\Component\Console\Descriptor\ApplicationDescription::getCommands()

Return value

Command[]

File

vendor/symfony/console/Descriptor/ApplicationDescription.php, line 78

Class

ApplicationDescription
@author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>

Namespace

Symfony\Component\Console\Descriptor

Code

public function getCommands() {
  if (null === $this->commands) {
    $this
      ->inspectApplication();
  }
  return $this->commands;
}