Stdout

Extends \Joomla\CMS\Application\CLI\CliOutput

Output handler for writing command line output to the stdout interface

deprecated
since

4.0.0

deprecated

5.0 Use the joomla/console package instead

Methods

__construct

Constructor

__construct(\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor = null) 
inherited
since

4.0.0

Arguments

$processor

\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterfaceThe output processor.

getProcessor

Get a processor

getProcessor() : \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
inherited
since

4.0.0

throws

\RuntimeException

Response

\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface

out

Write a string to an output handler.

out(string $text = '', boolean $nl = true) : $this
inherited abstract
since

4.0.0

Arguments

$text

stringThe text to display.

$nl

booleanTrue (default) to append a new line at the end of the output string.

Response

$this

setProcessor

Set a processor

setProcessor(\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor) : $this
inherited
since

4.0.0

Arguments

$processor

\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterfaceThe output processor.

Response

$this

Properties

processor

Output processing object

inherited