\phpDocumentor\ConsoleApplication

Summary

Methods
Properties
Constants
__construct()
getLongVersion()
No public properties found
No constants found
getCommandName()
getDefaultInputDefinition()
No protected properties found
N/A
looksLikeACommandName()
No private properties found
N/A

Methods

__construct()

__construct(\Symfony\Component\HttpKernel\KernelInterface  $kernel) : mixed

Parameters

\Symfony\Component\HttpKernel\KernelInterface $kernel

Returns

mixed —

getLongVersion()

getLongVersion() : string

Returns the long version of the application.

Returns

string —

The long application version

getCommandName()

getCommandName(\Symfony\Component\Console\Input\InputInterface  $input) : ?string

Parameters

\Symfony\Component\Console\Input\InputInterface $input

Returns

?string —

getDefaultInputDefinition()

getDefaultInputDefinition() : \Symfony\Component\Console\Input\InputDefinition

Returns

\Symfony\Component\Console\Input\InputDefinition —

looksLikeACommandName()

looksLikeACommandName(?string  $argument) : bool

Only interpret the first argument as a potential command name if it is set and less than 100 characters.

Anything above 255 characters will cause PHP warnings; and 100 should never occur anyway as a single command name.

Parameters

?string $argument

Returns

bool —