Command
Extends
-
Symfony\...\Command
Uses
- CallsCommands
- ConfiguresPrompts
- HasParameters
- InteractsWithIO
- InteractsWithSignals
- PromptsForMissingInput
- Macroable
Properties
$signature string
The name and signature of the console command.
$name string
The console command name.
$description string|null
The console command description.
$help string
The console command help text.
$hidden bool
Indicates whether the command should be shown in the Artisan command list.
$isolated bool
Indicates whether only one instance of the command can run at any given time.
$isolatedExitCode int
The default exit code for isolated commands.
$aliases array
The console command name aliases.
Methods
__construct ( ) : void
Create a new console command instance.
configureUsingFluentDefinition ( ) : void
Configure the console command using a fluent definition.
configureIsolation ( ) : void
Configure the console command for isolation.
run ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int
Run the console command.
Parameters
- $input Symfony\...\InputInterface
- $output Symfony\...\OutputInterface
execute ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int
Execute the console command.
Parameters
- $input Symfony\...\InputInterface
- $output Symfony\...\OutputInterface
commandIsolationMutex ( ) : CommandMutex
Get a command isolation mutex instance for the command.
resolveCommand ( $command ) : Symfony\...\Command
Resolve the console command instance for the given command.
Parameters
- $command Symfony\...\Command|string
isHidden ( ) : bool
{@inheritdoc}
setHidden ( bool $hidden ) : void
{@inheritdoc}
setLaravel ( $laravel ) : void
Set the Laravel application instance.
Parameters
- $laravel Container