\rex_console_command

Summary

Methods
Properties
Constants
setPackage()
getPackage()
run()
No public properties found
No constants found
getStyle()
decodeMessage()
$package
N/A
No private methods found
No private properties found
N/A

Properties

$package

$package : null|\rex_package

Type

rex_package

Methods

setPackage()

setPackage(\rex_package  $package = null) : $this

Parameters

\rex_package $package

Returns

$this —

getPackage()

getPackage() : null|\rex_package

Returns

null|\rex_package —

In core commands it returns null, otherwise the corresponding package object

run()

run(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) : mixed

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

Returns

mixed —

getStyle()

getStyle(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) : \SymfonyStyle

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

Returns

\SymfonyStyle —

decodeMessage()

decodeMessage(string  $message) : string

Decodes a html message for use in the CLI, e.g. provided by rex_i18n.

Parameters

string $message

A html message

Returns

string —

A cli optimzed message