Pionia Core

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
int

callSilent()

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
int

callSilently()

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
int

context()

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
ArrayInput

resolveCommand()

Resolve the console command instance for the given command.

protected abstract resolveCommand(string|Command $command) : Command
Parameters
$command : string|Command
Return values
Command

runCommand()

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
Tags
throws
ExceptionInterface
Return values
int

        
On this page

Search results