interface ConsoleAwareInterface (View source)

Interface to flag an object as being aware of the symfony console components.

Be aware that these objects are not guaranteed to be provided

Methods

setConsole(Application $console, OutputInterface $output = null, InputInterface $input = null)

Set the console object

setOutput(OutputInterface $output)

Set the output object to use

setInput(InputInterface $input)

Set the input object to use

Details

ConsoleAwareInterface setConsole(Application $console, OutputInterface $output = null, InputInterface $input = null)

Set the console object

Parameters

Application $console
OutputInterface $output
InputInterface $input

Return Value

ConsoleAwareInterface

Returns itself

ConsoleAwareInterface setOutput(OutputInterface $output)

Set the output object to use

Parameters

OutputInterface $output

Return Value

ConsoleAwareInterface

Returns itself

ConsoleAwareInterface setInput(InputInterface $input)

Set the input object to use

Parameters

InputInterface $input

Return Value

ConsoleAwareInterface

Returns itself