프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$accessMap | Symfony\Component\Security\Http\AccessMapInterface | ||
$availableLanguages | array | ||
$defaultLocale | string | ||
$router | string |
메소드 | 설명 | |
---|---|---|
__construct ( Symfony\Component\Security\Http\AccessMapInterface $accessMap, array $availableLanguages, string $defaultLocale = 'en', Symfony\Component\Routing\RouterInterface $router = null ) | ||
getBrowserAcceptLanguages ( |
get browser accept languages | |
getPreferredLocale ( |
get preferred locale | |
getSubscribedEvents ( ) : array | ||
onKernelRequest ( |
||
onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event ) | ||
splitHttpAcceptHeader ( string $header ) : array | split http accept header |
메소드 | 설명 | |
---|---|---|
guessFrontendLocale ( mixed $locales ) : string | guess frontend locale | |
matchLocaleInAvailableLanguages ( $locale ) : string | try to match browser language with available languages |
public __construct ( Symfony\Component\Security\Http\AccessMapInterface $accessMap, array $availableLanguages, string $defaultLocale = 'en', Symfony\Component\Routing\RouterInterface $router = null ) | ||
$accessMap | Symfony\Component\Security\Http\AccessMapInterface | |
$availableLanguages | array | |
$defaultLocale | string | |
$router | Symfony\Component\Routing\RouterInterface |
public getBrowserAcceptLanguages ( |
||
$request | ||
리턴 | array |
public getPreferredLocale ( |
||
$request | ||
리턴 | string |
protected guessFrontendLocale ( mixed $locales ) : string | ||
$locales | mixed | |
리턴 | string |
protected matchLocaleInAvailableLanguages ( $locale ) : string | ||
$locale | ||
리턴 | string |
public onKernelRequest ( |
||
$event |
public onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event ) | ||
$event | Symfony\Component\Security\Http\Event\InteractiveLoginEvent |
public splitHttpAcceptHeader ( string $header ) : array | ||
$header | string | |
리턴 | array |
protected AccessMapInterface,Symfony\Component\Security\Http $accessMap | ||
리턴 | Symfony\Component\Security\Http\AccessMapInterface |