UserFrosting API

LocaleDictionaryCommand extends BaseCommand Uses LocaleOption

locale:dictionary command.

Print computed dictionary for the selected locale.

Tags
author

Louis Charette

Table of Contents

$io SymfonyStyle
$ci ContainerInterface
configure() {@inheritdoc} mixed
execute() {@inheritdoc} mixed
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

Methods

execute()

{@inheritdoc}

protected execute( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

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
Locale

initialize()

{@inheritdoc}

protected initialize( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

setContainer()

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

Return values
bool

Search results