rex_console_command
extends Command
in package
AbstractYes
Table of Contents
Properties
- $package : rex_package|null
Methods
- getPackage() : rex_package|null
- run() : int
- setPackage() : $this
- decodeMessage() : string
- Decodes a html message for use in the CLI, e.g. provided by rex_i18n.
- getStyle() : SymfonyStyle
Properties
$package
protected
rex_package|null
$package
Methods
getPackage()
public
getPackage() : rex_package|null
Return values
rex_package|null —In core commands it returns null
, otherwise the corresponding package object
run()
public
run(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intsetPackage()
public
setPackage([rex_package|null $package = null ]) : $this
Parameters
- $package : rex_package|null = null
Return values
$thisdecodeMessage()
Decodes a html message for use in the CLI, e.g. provided by rex_i18n.
protected
decodeMessage(string $message) : string
Parameters
- $message : string
-
A html message
Return values
string —A cli optimzed message
getStyle()
protected
getStyle(InputInterface $input, OutputInterface $output) : SymfonyStyle
Parameters
- $input : InputInterface
- $output : OutputInterface