Application
extends Application
in package
Table of Contents
Methods
- __construct() : mixed
- getLongVersion() : string
- Returns the long version of the application.
- getCommandName() : string|null
- getDefaultInputDefinition() : InputDefinition
- looksLikeACommandName() : bool
- Only interpret the first argument as a potential command name if it is set and less than 100 characters.
Methods
__construct()
public
__construct(KernelInterface $kernel) : mixed
Parameters
- $kernel : KernelInterface
getLongVersion()
Returns the long version of the application.
public
getLongVersion() : string
Return values
string —The long application version
getCommandName()
protected
getCommandName(InputInterface $input) : string|null
Parameters
- $input : InputInterface
Return values
string|nullgetDefaultInputDefinition()
protected
getDefaultInputDefinition() : InputDefinition
Return values
InputDefinitionlooksLikeACommandName()
Only interpret the first argument as a potential command name if it is set and less than 100 characters.
private
looksLikeACommandName(string|null $argument) : bool
Anything above 255 characters will cause PHP warnings; and 100 should never occur anyway as a single command name.
Parameters
- $argument : string|null