LocaleCompareCommand extends BaseCommand Uses LocaleOption
locale:missing-keys command.
Find missing keys in locale translation files.
Tags
Table of Contents
$io | SymfonyStyle | |
---|---|---|
$ci | ContainerInterface | |
configure() | {@inheritdoc} | mixed |
execute() | {@inheritdoc} | mixed |
compareDictionaries() | Display dictionary comparaison table. | void |
dictionariesKeys() | Display dictionary keys comparaison table. | void |
dictionariesValues() | Display dictionary values comparaison table. | void |
emptyValues() | Display locale empty values table. | void |
askForLocale() | Display locale selection question. | string |
getLocale() | Locale | |
initialize() | {@inheritdoc} | mixed |
setContainer() | Setup the global container object. | void |
isProduction() | Return if the app is in production mode. | bool |
Properties
$io
protected
SymfonyStyle
$io
Tags
$ci
protected
ContainerInterface
$ci
Methods
configure()
{@inheritdoc}
protected
configure(
)
: mixed
Return values
mixedexecute()
{@inheritdoc}
protected
execute(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedcompareDictionaries()
Display dictionary comparaison table.
protected
compareDictionaries(
$leftDictionary :
DictionaryInterface
, $rightDictionary :
DictionaryInterface
)
: void
Parameters
- $leftDictionary : DictionaryInterface
- $rightDictionary : DictionaryInterface
dictionariesKeys()
Display dictionary keys comparaison table.
protected
dictionariesKeys(
$leftDictionary :
DictionaryInterface
, $rightDictionary :
DictionaryInterface
)
: void
Parameters
- $leftDictionary : DictionaryInterface
- $rightDictionary : DictionaryInterface
dictionariesValues()
Display dictionary values comparaison table.
protected
dictionariesValues(
$leftDictionary :
DictionaryInterface
, $rightDictionary :
DictionaryInterface
)
: void
Parameters
- $leftDictionary : DictionaryInterface
- $rightDictionary : DictionaryInterface
emptyValues()
Display locale empty values table.
protected
emptyValues(
$dictionary :
DictionaryInterface
)
: void
Parameters
- $dictionary : DictionaryInterface
askForLocale()
Display locale selection question.
protected
askForLocale(
$name :
string
[, $default :
bool
= true ]
)
: string
Parameters
- $name : string
- $default : bool = true
Return values
string —Selected locale indentifier
getLocale()
protected
getLocale(
$option :
string|null
)
: Locale
Parameters
- $option : string|null
Return values
Localeinitialize()
{@inheritdoc}
protected
initialize(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedsetContainer()
Setup the global container object.
public
setContainer(
$ci :
ContainerInterface
)
: void
Parameters
- $ci : ContainerInterface
isProduction()
Return if the app is in production mode.
protected
isProduction(
)
: bool
@return bool True/False if the app is in production mode