CallsCommands
trait CallsCommands (View source)
Methods
Command
resolveCommand(Command|string $command)
Resolve the console command instance for the given command.
int
call(Command|string $command, array $arguments = [])
Call another console command.
int
callSilent(Command|string $command, array $arguments = [])
Call another console command without output.
int
callSilently(Command|string $command, array $arguments = [])
Call another console command without output.
int
runCommand(Command|string $command, array $arguments, OutputInterface $output)
Run the given console command.
ArrayInput
createInputFromArguments(array $arguments)
Create an input instance from the given arguments.
array
context()
Get all of the context passed to the command.
Details
abstract protected Command
resolveCommand(Command|string $command)
Resolve the console command instance for the given command.
int
call(Command|string $command, array $arguments = [])
Call another console command.
int
callSilent(Command|string $command, array $arguments = [])
Call another console command without output.
int
callSilently(Command|string $command, array $arguments = [])
Call another console command without output.
protected int
runCommand(Command|string $command, array $arguments, OutputInterface $output)
Run the given console command.
protected ArrayInput
createInputFromArguments(array $arguments)
Create an input instance from the given arguments.
protected array
context()
Get all of the context passed to the command.