Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ReStructuredTextDescriptor.php

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

ReStructuredTextDescriptor

Namespace

Symfony\Component\Console\Descriptor

Code

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");
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal