PHP Class Barryvdh\TranslationManager\Translator

Inheritance: extends Illuminate\Translation\Translator
Mostra file Open project: barryvdh/laravel-translation-manager Class Usage Examples

Protected Properties

Property Type Description
$events Illuminate\Events\Dispatcher

Public Methods

Method Description
get ( string $key, array $replace = [], string $locale = null, $fallback = true ) : string Get the translation for the given key.
setTranslationManager ( Manager $manager )

Protected Methods

Method Description
notifyMissingKey ( $key )

Method Details

get() public method

Get the translation for the given key.
public get ( string $key, array $replace = [], string $locale = null, $fallback = true ) : string
$key string
$replace array
$locale string
return string

notifyMissingKey() protected method

protected notifyMissingKey ( $key )

setTranslationManager() public method

public setTranslationManager ( Manager $manager )
$manager Manager

Property Details

$events protected_oe property

protected Dispatcher,Illuminate\Events $events
return Illuminate\Events\Dispatcher