Class AbstractCliApplication
Base class for a Joomla! command line application.
-
Joomla\Application\AbstractApplication
implements
Psr\Log\LoggerAwareInterface
-
Joomla\Application\AbstractCliApplication
Methods summary
public
|
#
__construct( Joomla\Input\Cli $input = null, Joomla\Registry\Registry $config = null, Joomla\Application\Cli\CliOutput $output = null, Joomla\Application\Cli\CliInput $cliInput = null )
Class constructor.
Parameters
- $input
Joomla\Input\Cli - $input An optional argument to provide dependency injection for the
application's input object. If the argument is an Input\Cli object that object
will become the application's input object, otherwise a default input object is
created.
- $config
Joomla\Registry\Registry - $config An optional argument to provide dependency injection for the
application's config object. If the argument is a Registry object that object
will become the application's config object, otherwise a default config object
is created.
- $output
Joomla\Application\Cli\CliOutput - $output An optional argument to provide dependency injection for the
application's output object. If the argument is a Cli\CliOutput object that
object will become the application's input object, otherwise a default output
object is created.
- $cliInput
Joomla\Application\Cli\CliInput - $cliInput An optional argument to provide dependency injection for the
application's CLI input object. If the argument is a Cli\CliInput object that
object will become the application's input object, otherwise a default input
object is created.
Since
1.0
Overrides
|
public
Joomla\Application\Cli\CliOutput
|
#
getOutput( )
Get an output object.
Returns
Since
1.0
|
public
Joomla\Application\Cli\CliInput
|
#
getCliInput( )
Get a CLI input object.
Returns
Since
1.6.0
|
public
Joomla\Application\AbstractCliApplication
|
#
out( string $text = '', boolean $nl = true )
Write a string to standard output.
Write a string to standard output.
Parameters
- $text
string - $text The text to display.
- $nl
boolean - $nl True (default) to append a new line at the end of the output string.
Returns
Since
1.0
|
public
string
|
#
in( )
Get a value from standard input.
Get a value from standard input.
Returns
string - The input string from standard input.
Since
1.0
CodeCoverageIgnore
|
close()
,
doExecute()
,
execute()
,
get()
,
getLogger()
,
initialise()
,
set()
,
setConfiguration()
,
setLogger()
Magic methods summary
Properties summary
$config
,
$input