PHP Класс Vluzrmos\LanguageDetector\Providers\LanguageDetectorServiceProvider

Наследование: extends Illuminate\Support\ServiceProvider
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Описание методов

boot() публичный Метод

Bootstrap the application.
public boot ( ) : void
Результат void

config() защищенный Метод

Get a config value.
protected config ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
Результат mixed

detectAndApplyLanguage() защищенный Метод

Detect and apply language for the application.
protected detectAndApplyLanguage ( )

getLanguageDetector() защищенный Метод

Get language.detector from container.
protected getLanguageDetector ( ) : Vluzrmos\LanguageDetector\LanguageDetector
Результат Vluzrmos\LanguageDetector\LanguageDetector

getSupportedLanguages() защищенный Метод

Get a list of supported locales.
protected getSupportedLanguages ( )

provides() публичный Метод

The services that package provides.
public provides ( ) : array
Результат array

register() публичный Метод

Register the package.
public register ( )

registerAllDrivers() защищенный Метод

Register All drivers available.
protected registerAllDrivers ( ) : void
Результат void

registerAndPublishConfigurations() защищенный Метод

Register and publish configuration files.
protected registerAndPublishConfigurations ( ) : void
Результат void

registerEncryptCookies() защищенный Метод

Disable cookie encryption for language cookie name.
protected registerEncryptCookies ( )

registerLanguageDetector() защищенный Метод

Register the detector instance.
protected registerLanguageDetector ( ) : void
Результат void

registerRoutePrefix() защищенный Метод

Regiter in container the routePrefix.
protected registerRoutePrefix ( ) : void
Результат void

Описание свойств

$config защищенное свойство

Configurations repository.
protected Repository,Illuminate\Config $config
Результат Illuminate\Config\Repository

$drivers защищенное свойство

Detector Drivers available and its shortcuts.
protected array $drivers
Результат array

$request защищенное свойство

Illuminate Request.
protected Request,Illuminate\Http $request
Результат Illuminate\Http\Request

$translator защищенное свойство

Symfony translator.
protected TranslatorInterface,Symfony\Component\Translation $translator
Результат Symfony\Component\Translation\TranslatorInterface