- author Antoine Corcy
Methods |
public Symfony\Component\Console\Application::__construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') |
public Symfony\Component\Console\Application::add(Symfony Adds a command object. If a command with the same name already exists, it will be overridden. If the command is not enabled it will not be added. |
public Symfony\Component\Console\Application::addCommands(array $commands) : void Adds an array of command objects. If a Command is not enabled it will not be added.
|
public Symfony\Component\Console\Application::all(?string $namespace = NULL) : array Gets the commands (registered in the given namespace if provided). The array keys are the full names and the values the command instances.
|
public Symfony\Component\Console\Application::areExceptionsCaught() : bool Gets whether to catch exceptions or not during commands execution. |
public Symfony\Component\Console\Application::complete(Symfony Adds suggestions to $suggestions for the current completion input (e.g. option or argument). |
public Symfony\Component\Console\Application::doRun(Symfony Runs the current application.
|
public Symfony\Component\Console\Application::extractNamespace(string $name, ?int $limit = NULL) : string Returns the namespace part of the command name. This method is not part of public API and should not be used directly. |
public Symfony\Component\Console\Application::find(string $name) : Symfony Finds a command by name or alias. Contrary to get, this command tries to find the best match if you give it an abbreviation of a name or alias.
|
public Symfony\Component\Console\Application::findNamespace(string $namespace) : string Finds a registered namespace by a name or an abbreviation.
|
public Symfony\Component\Console\Application::get(string $name) : Symfony Returns a registered command by name or alias.
|
public static Symfony\Component\Console\Application::getAbbreviations(array $names) : array Returns an array of possible abbreviations given a set of names.
|
public Symfony\Component\Console\Application::getAlarmInterval() : ?int Gets the interval in seconds on which a SIGALRM signal is dispatched. |
public Symfony\Component\Console\Application::getDefinition() : Symfony Gets the InputDefinition related to this Application. |
public getHelp() : string |
public Symfony\Component\Console\Application::getHelperSet() : Symfony Get the helper set associated with the command. |
public Symfony\Component\Console\Application::getLongVersion() : string Returns the long version of the application. |
public Symfony\Component\Console\Application::getName() : string Gets the name of the application. |
public Symfony\Component\Console\Application::getNamespaces() : array Returns an array of all unique namespaces used by currently registered commands. It does not return the global namespace which always exists.
|
public Symfony\Component\Console\Application::getSignalRegistry() : Symfony |
public Symfony\Component\Console\Application::getVersion() : string Gets the application version. |
public Symfony\Component\Console\Application::has(string $name) : bool Returns true if the command exists, false otherwise. |
public Symfony\Component\Console\Application::isAutoExitEnabled() : bool Gets whether to automatically exit after a command execution or not. |
public Symfony\Component\Console\Application::isSingleCommand() : bool
|
public Symfony\Component\Console\Application::register(string $name) : Symfony Registers a new command. |
public Symfony\Component\Console\Application::renderThrowable(Throwable $e, Symfony |
public Symfony\Component\Console\Application::reset() : void |
public run(?Symfony
|
public Symfony\Component\Console\Application::setAlarmInterval(?int $seconds) : void Sets the interval to schedule a SIGALRM signal in seconds. |
public Symfony\Component\Console\Application::setAutoExit(bool $boolean) : void Sets whether to automatically exit after a command execution or not. |
public Symfony\Component\Console\Application::setCatchErrors(bool $catchErrors = true) : void Sets whether to catch errors or not during commands execution. |
public Symfony\Component\Console\Application::setCatchExceptions(bool $boolean) : void Sets whether to catch exceptions or not during commands execution. |
public Symfony\Component\Console\Application::setCommandLoader(Symfony |
public Symfony\Component\Console\Application::setDefaultCommand(string $commandName, bool $isSingleCommand = false) : static Sets the default Command name.
|
public Symfony\Component\Console\Application::setDefinition(Symfony |
public Symfony\Component\Console\Application::setDispatcher(Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher) : void
|
public Symfony\Component\Console\Application::setHelperSet(Symfony |
public Symfony\Component\Console\Application::setName(string $name) : void Sets the application name. |
public Symfony\Component\Console\Application::setSignalsToDispatchEvent(int $signalsToDispatchEvent) : void |
public Symfony\Component\Console\Application::setVersion(string $version) : void Sets the application version. |
Methods |
protected Symfony\Component\Console\Application::configureIO(Symfony Configures the input and output instances based on the user arguments and options. |
protected Symfony\Component\Console\Application::doRenderThrowable(Throwable $e, Symfony |
protected Symfony\Component\Console\Application::doRunCommand(Symfony Runs the current command. If an event dispatcher has been attached to the application, events are also dispatched during the life-cycle of the command.
|
protected Symfony\Component\Console\Application::getCommandName(Symfony Gets the name of the command based on input. |
protected Symfony\Component\Console\Application::getDefaultCommands() : array Gets the default commands that should always be available.
|
protected Symfony\Component\Console\Application::getDefaultHelperSet() : Symfony Gets the default helper set with the helpers that should always be available. |
protected Symfony\Component\Console\Application::getDefaultInputDefinition() : Symfony Gets the default input definition. |
Properties |
private $logo = '
________ __ .__
/ _____/ ____ _____/ |_ ____ ____ | | ______
/ \ ____/ __ \/ _ \ __\/ _ \ / _ \| | / ___/
\ \_\ \ ___( <_> ) | ( <_> | <_> ) |__\___ \
\______ /\___ >____/|__| \____/ \____/|____/____ >
\/ \/ \/
'
|
Methods |
public static Symfony\Component\Console\Application::getAbbreviations(array $names) : array Returns an array of possible abbreviations given a set of names.
|