CliOutput

Base class defining a command line output handler

abstract deprecated
since

4.0.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

package

Joomla CMS

Methods

__construct

Constructor

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

4.0.0

Arguments

processor

ProcessorInterfaceThe output processor.

Response

mixed

getProcessor

Get a processor

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

4.0.0

throws

RuntimeException

Response

ProcessorInterface

out

Write a string to an output handler.

out( text = '',  nl = true) : 
abstract
since

4.0.0

Arguments

text

stringThe text to display.

nl

boolTrue (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) : 
since

4.0.0

Arguments

processor

ProcessorInterfaceThe output processor.

Response

$this

Properties

processor

Output processing object

since

4.0.0

Type(s)

ProcessorInterface