class StateHelper (View source)

Methods

static State
injectIntoCallbackObject(callable|object $callback, InputInterface $input, OutputInterface|null $output = null)

Inject $input and $output into the command instance if it is set up to receive them.

static State
inject($target, InputInterface $input, OutputInterface|null $output = null)

Inject $input and $output into the command instance if it is set up to receive them.

restore()

No description

Details

static State injectIntoCallbackObject(callable|object $callback, InputInterface $input, OutputInterface|null $output = null)

Inject $input and $output into the command instance if it is set up to receive them.

Parameters

callable|object $callback
InputInterface $input
OutputInterface|null $output

Return Value

State

static State inject($target, InputInterface $input, OutputInterface|null $output = null)

Inject $input and $output into the command instance if it is set up to receive them.

Parameters

$target
InputInterface $input
OutputInterface|null $output

Return Value

State

restore()

No description