BumbleDocGen / Technical description of the project / Class map / App
App class:
namespace BumbleDocGen\Console;
class App extends \Symfony\Component\Console\Application
An Application is the container for a collection of commands.
- add - Adds a command object.
- addCommands - Adds an array of command objects.
- all - Gets the commands (registered in the given namespace if provided).
- areExceptionsCaught - Gets whether to catch exceptions or not during commands execution.
- complete - Adds suggestions to $suggestions for the current completion input (e.g. option or argument).
- doRun - Runs the current application.
- extractNamespace - Returns the namespace part of the command name.
- find - Finds a command by name or alias.
- findNamespace - Finds a registered namespace by a name or an abbreviation.
- get - Returns a registered command by name or alias.
- getAbbreviations - Returns an array of possible abbreviations given a set of names.
- getDefinition - Gets the InputDefinition related to this Application.
- getHelp - Gets the help message.
- getHelperSet - Get the helper set associated with the command.
- getLongVersion - Returns the long version of the application.
- getName - Gets the name of the application.
- getNamespaces - Returns an array of all unique namespaces used by currently registered commands.
- getSignalRegistry
- getVersion - Gets the application version.
- has - Returns true if the command exists, false otherwise.
- isAutoExitEnabled - Gets whether to automatically exit after a command execution or not.
- isSingleCommand
- register - Registers a new command.
- renderThrowable
- reset
- run - Runs the current application.
- setAutoExit - Sets whether to automatically exit after a command execution or not.
- setCatchExceptions - Sets whether to catch exceptions or not during commands execution.
- setCommandLoader
- setDefaultCommand - Sets the default Command name.
- setDefinition
- setDispatcher
- setHelperSet
- setName - Sets the application name.
- setSignalsToDispatchEvent
- setVersion - Sets the application version.
- # add | source code
// Implemented in Symfony\Component\Console\Application
public function add(\Symfony\Component\Console\Command\Command $command): \Symfony\Component\Console\Command\Command|null;
Adds a command object.
Parameters:
Name | Type | Description |
---|---|---|
$command | \Symfony\Component\Console\Command\Command | - |
Return value: \Symfony\Component\Console\Command\Command | null
- # addCommands | source code
// Implemented in Symfony\Component\Console\Application
public function addCommands(array $commands): mixed;
Adds an array of command objects.
Parameters:
Name | Type | Description |
---|---|---|
$commands | array | An array of commands |
Return value: mixed
- # all | source code
// Implemented in Symfony\Component\Console\Application
public function all(string $namespace = null): \Symfony\Component\Console\Command\Command[];
Gets the commands (registered in the given namespace if provided).
Parameters:
Name | Type | Description |
---|---|---|
$namespace | string | - |
Return value: \Symfony\Component\Console\Command\Command[]
- # areExceptionsCaught | source code
// Implemented in Symfony\Component\Console\Application
public function areExceptionsCaught(): bool;
Gets whether to catch exceptions or not during commands execution.
Parameters: not specified
Return value: bool
- # complete | source code
// Implemented in Symfony\Component\Console\Application
public function complete(\Symfony\Component\Console\Completion\CompletionInput $input, \Symfony\Component\Console\Completion\CompletionSuggestions $suggestions): void;
Adds suggestions to $suggestions for the current completion input (e.g. option or argument).
Parameters:
Name | Type | Description |
---|---|---|
$input | \Symfony\Component\Console\Completion\CompletionInput | - |
$suggestions | \Symfony\Component\Console\Completion\CompletionSuggestions | - |
Return value: void
- # doRun | source code
// Implemented in Symfony\Component\Console\Application
public function doRun(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): int;
Runs the current application.
Parameters:
Name | Type | Description |
---|---|---|
$input | \Symfony\Component\Console\Input\InputInterface | - |
$output | \Symfony\Component\Console\Output\OutputInterface | - |
Return value: int
- # extractNamespace | source code
// Implemented in Symfony\Component\Console\Application
public function extractNamespace(string $name, int $limit = null): string;
Returns the namespace part of the command name.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
$limit | int | - |
Return value: string
- # find | source code
// Implemented in Symfony\Component\Console\Application
public function find(string $name): \Symfony\Component\Console\Command\Command;
Finds a command by name or alias.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
Return value: \Symfony\Component\Console\Command\Command
Throws:
- \Symfony\Component\Console\Exception\CommandNotFoundException - When command name is incorrect or ambiguous
- # findNamespace | source code
// Implemented in Symfony\Component\Console\Application
public function findNamespace(string $namespace): string;
Finds a registered namespace by a name or an abbreviation.
Parameters:
Name | Type | Description |
---|---|---|
$namespace | string | - |
Return value: string
Throws:
- \Symfony\Component\Console\Exception\NamespaceNotFoundException - When namespace is incorrect or ambiguous
- # get | source code
// Implemented in Symfony\Component\Console\Application
public function get(string $name): \Symfony\Component\Console\Command\Command;
Returns a registered command by name or alias.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
Return value: \Symfony\Component\Console\Command\Command
Throws:
- \Symfony\Component\Console\Exception\CommandNotFoundException - When given command name does not exist
- # getAbbreviations | source code
// Implemented in Symfony\Component\Console\Application
public static function getAbbreviations(array $names): array;
Returns an array of possible abbreviations given a set of names.
Parameters:
Name | Type | Description |
---|---|---|
$names | array | - |
Return value: array
- # getDefinition | source code
// Implemented in Symfony\Component\Console\Application
public function getDefinition(): \Symfony\Component\Console\Input\InputDefinition;
Gets the InputDefinition related to this Application.
Parameters: not specified
Return value: \Symfony\Component\Console\Input\InputDefinition
- # getHelp | source code
// Implemented in Symfony\Component\Console\Application
public function getHelp(): string;
Gets the help message.
Parameters: not specified
Return value: string
- # getHelperSet | source code
// Implemented in Symfony\Component\Console\Application
public function getHelperSet(): \Symfony\Component\Console\Helper\HelperSet;
Get the helper set associated with the command.
Parameters: not specified
Return value: \Symfony\Component\Console\Helper\HelperSet
- # getLongVersion | source code
// Implemented in Symfony\Component\Console\Application
public function getLongVersion(): string;
Returns the long version of the application.
Parameters: not specified
Return value: string
- # getName | source code
// Implemented in Symfony\Component\Console\Application
public function getName(): string;
Gets the name of the application.
Parameters: not specified
Return value: string
- # getNamespaces | source code
// Implemented in Symfony\Component\Console\Application
public function getNamespaces(): array;
Returns an array of all unique namespaces used by currently registered commands.
Parameters: not specified
Return value: array
- # getSignalRegistry | source code
// Implemented in Symfony\Component\Console\Application
public function getSignalRegistry(): \Symfony\Component\Console\SignalRegistry\SignalRegistry;
Parameters: not specified
Return value: \Symfony\Component\Console\SignalRegistry\SignalRegistry
- # getVersion | source code
// Implemented in Symfony\Component\Console\Application
public function getVersion(): string;
Gets the application version.
Parameters: not specified
Return value: string
- # has | source code
// Implemented in Symfony\Component\Console\Application
public function has(string $name): bool;
Returns true if the command exists, false otherwise.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
Return value: bool
- # isAutoExitEnabled | source code
// Implemented in Symfony\Component\Console\Application
public function isAutoExitEnabled(): bool;
Gets whether to automatically exit after a command execution or not.
Parameters: not specified
Return value: bool
- #
isSingleCommand
⚠️ Is internal | source code
// Implemented in Symfony\Component\Console\Application
public function isSingleCommand(): bool;
Parameters: not specified
Return value: bool
- # register | source code
// Implemented in Symfony\Component\Console\Application
public function register(string $name): \Symfony\Component\Console\Command\Command;
Registers a new command.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
Return value: \Symfony\Component\Console\Command\Command
- # renderThrowable | source code
// Implemented in Symfony\Component\Console\Application
public function renderThrowable(\Throwable $e, \Symfony\Component\Console\Output\OutputInterface $output): void;
Parameters:
Name | Type | Description |
---|---|---|
$e | \Throwable | - |
$output | \Symfony\Component\Console\Output\OutputInterface | - |
Return value: void
- # reset | source code
// Implemented in Symfony\Component\Console\Application
public function reset(): mixed;
Parameters: not specified
Return value: mixed
- # run | source code
// Implemented in Symfony\Component\Console\Application
public function run(\Symfony\Component\Console\Input\InputInterface $input = null, \Symfony\Component\Console\Output\OutputInterface $output = null): int;
Runs the current application.
Parameters:
Name | Type | Description |
---|---|---|
$input | \Symfony\Component\Console\Input\InputInterface | - |
$output | \Symfony\Component\Console\Output\OutputInterface | - |
Return value: int
Throws:
- \Exception - When running fails. Bypass this when {@link setCatchExceptions()}.
- # setAutoExit | source code
// Implemented in Symfony\Component\Console\Application
public function setAutoExit(bool $boolean): mixed;
Sets whether to automatically exit after a command execution or not.
Parameters:
Name | Type | Description |
---|---|---|
$boolean | bool | - |
Return value: mixed
- # setCatchExceptions | source code
// Implemented in Symfony\Component\Console\Application
public function setCatchExceptions(bool $boolean): mixed;
Sets whether to catch exceptions or not during commands execution.
Parameters:
Name | Type | Description |
---|---|---|
$boolean | bool | - |
Return value: mixed
- # setCommandLoader | source code
// Implemented in Symfony\Component\Console\Application
public function setCommandLoader(\Symfony\Component\Console\CommandLoader\CommandLoaderInterface $commandLoader): mixed;
Parameters:
Name | Type | Description |
---|---|---|
$commandLoader | \Symfony\Component\Console\CommandLoader\CommandLoaderInterface | - |
Return value: mixed
- # setDefaultCommand | source code
// Implemented in Symfony\Component\Console\Application
public function setDefaultCommand(string $commandName, bool $isSingleCommand = false): static;
Sets the default Command name.
Parameters:
Name | Type | Description |
---|---|---|
$commandName | string | - |
$isSingleCommand | bool | - |
Return value: static
- # setDefinition | source code
// Implemented in Symfony\Component\Console\Application
public function setDefinition(\Symfony\Component\Console\Input\InputDefinition $definition): mixed;
Parameters:
Name | Type | Description |
---|---|---|
$definition | \Symfony\Component\Console\Input\InputDefinition | - |
Return value: mixed
- # setDispatcher | source code
// Implemented in Symfony\Component\Console\Application
public function setDispatcher(\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher): mixed;
Parameters:
Name | Type | Description |
---|---|---|
$dispatcher | \Symfony\Contracts\EventDispatcher\EventDispatcherInterface | - |
Return value: mixed
- # setHelperSet | source code
// Implemented in Symfony\Component\Console\Application
public function setHelperSet(\Symfony\Component\Console\Helper\HelperSet $helperSet): mixed;
Parameters:
Name | Type | Description |
---|---|---|
$helperSet | \Symfony\Component\Console\Helper\HelperSet | - |
Return value: mixed
- # setName | source code
// Implemented in Symfony\Component\Console\Application
public function setName(string $name): mixed;
Sets the application name.
Parameters:
Name | Type | Description |
---|---|---|
$name | string | - |
Return value: mixed
- # setSignalsToDispatchEvent | source code
// Implemented in Symfony\Component\Console\Application
public function setSignalsToDispatchEvent(int ...$signalsToDispatchEvent): mixed;
Parameters:
Name | Type | Description |
---|---|---|
$signalsToDispatchEvent (variadic) | int | - |
Return value: mixed
- # setVersion | source code
// Implemented in Symfony\Component\Console\Application
public function setVersion(string $version): mixed;
Sets the application version.
Parameters:
Name | Type | Description |
---|---|---|
$version | string | - |
Return value: mixed