function ReStructuredTextDescriptor::describeCommands
1 call to ReStructuredTextDescriptor::describeCommands()
- ReStructuredTextDescriptor::describeApplication in vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php - Describes an Application instance.
File
-
vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php, line 176
Class
Namespace
Symfony\Component\Console\DescriptorCode
private function describeCommands($application, array $options) : void {
$title = 'Commands';
$this->write("\n\n{$title}\n" . str_repeat($this->chapterChar, Helper::width($title)) . "\n\n");
foreach ($this->visibleNamespaces as $namespace) {
if ('_global' === $namespace) {
$commands = $application->all('');
$this->write('Global' . "\n" . str_repeat($this->sectionChar, Helper::width('Global')) . "\n\n");
}
else {
$commands = $application->all($namespace);
$this->write($namespace . "\n" . str_repeat($this->sectionChar, Helper::width($namespace)) . "\n\n");
}
foreach ($this->removeAliasesAndHiddenCommands($commands) as $command) {
$this->describeCommand($command, $options);
$this->write("\n\n");
}
}
}