Свойство | Тип | Описание | |
---|---|---|---|
$config | Illuminate\Config\Repository | Configurations repository. | |
$drivers | array | Detector Drivers available and its shortcuts. | |
$request | Illuminate\Http\Request | Illuminate Request. | |
$translator | Symfony\Component\Translation\TranslatorInterface | Symfony translator. |
Метод | Описание | |
---|---|---|
boot ( ) : void | Bootstrap the application. | |
provides ( ) : array | The services that package provides. | |
register ( ) | Register the package. |
Метод | Описание | |
---|---|---|
config ( string $key, mixed $default = null ) : mixed | Get a config value. | |
detectAndApplyLanguage ( ) | Detect and apply language for the application. | |
getLanguageDetector ( ) : Vluzrmos\LanguageDetector\LanguageDetector | Get language.detector from container. | |
getSupportedLanguages ( ) | Get a list of supported locales. | |
registerAllDrivers ( ) : void | Register All drivers available. | |
registerAndPublishConfigurations ( ) : void | Register and publish configuration files. | |
registerEncryptCookies ( ) | Disable cookie encryption for language cookie name. | |
registerLanguageDetector ( ) : void | Register the detector instance. | |
registerRoutePrefix ( ) : void | Regiter in container the routePrefix. |
protected detectAndApplyLanguage ( ) |
protected getLanguageDetector ( ) : Vluzrmos\LanguageDetector\LanguageDetector | ||
Результат | Vluzrmos\LanguageDetector\LanguageDetector |
protected getSupportedLanguages ( ) |
protected registerAllDrivers ( ) : void | ||
Результат | void |
protected registerAndPublishConfigurations ( ) : void | ||
Результат | void |
protected registerEncryptCookies ( ) |
protected registerLanguageDetector ( ) : void | ||
Результат | void |
protected registerRoutePrefix ( ) : void | ||
Результат | void |
protected Repository,Illuminate\Config $config | ||
Результат | Illuminate\Config\Repository |
protected array $drivers | ||
Результат | array |
protected Request,Illuminate\Http $request | ||
Результат | Illuminate\Http\Request |