PHP 클래스 Vluzrmos\LanguageDetector\Providers\LanguageDetectorServiceProvider

상속: extends Illuminate\Support\ServiceProvider
파일 보기 프로젝트 열기: vluzrmos/laravel-language-detector

보호된 프로퍼티들

프로퍼티 타입 설명
$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