CallsCommands
Table of Contents
Methods
- call() : int
- Call another console command.
- callSilent() : int
- Call another console command without output.
- callSilently() : int
- Call another console command without output.
- context() : array<string|int, mixed>
- Get all of the context passed to the command.
- createInputFromArguments() : ArrayInput
- Create an input instance from the given arguments.
- resolveCommand() : Command
- Resolve the console command instance for the given command.
- runCommand() : int
- Run the given the console command.
Methods
call()
Call another console command.
public
call(string|Command $command[, array<string|int, mixed> $arguments = [] ]) : int
Parameters
- $command : string|Command
- $arguments : array<string|int, mixed> = []
Return values
intcallSilent()
Call another console command without output.
public
callSilent(Command|string $command[, array<string|int, mixed> $arguments = [] ]) : int
Parameters
- $command : Command|string
- $arguments : array<string|int, mixed> = []
Return values
intcallSilently()
Call another console command without output.
public
callSilently(string|Command $command[, array<string|int, mixed> $arguments = [] ]) : int
Parameters
- $command : string|Command
- $arguments : array<string|int, mixed> = []
Return values
intcontext()
Get all of the context passed to the command.
protected
context() : array<string|int, mixed>
Return values
array<string|int, mixed>createInputFromArguments()
Create an input instance from the given arguments.
protected
createInputFromArguments(array<string|int, mixed> $arguments) : ArrayInput
Parameters
- $arguments : array<string|int, mixed>
Return values
ArrayInputresolveCommand()
Resolve the console command instance for the given command.
protected
abstract resolveCommand(string|Command $command) : Command
Parameters
- $command : string|Command
Return values
CommandrunCommand()
Run the given the console command.
protected
runCommand(Command|string $command, array<string|int, mixed> $arguments, OutputInterface $output) : int
Parameters
- $command : Command|string
- $arguments : array<string|int, mixed>
- $output : OutputInterface