PHP 클래스 Bolt\Provider\TranslationServiceProvider

상속: implements Silex\ServiceProviderInterface
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
addResources ( Silex\Application $app, string $locale ) : array Adds all resources that belong to a locale.
boot ( Silex\Application $app )
register ( Silex\Application $app )

보호된 메소드들

메소드 설명
mergeGenericLocales ( array $inputLocales ) : string[] Adds generic locales into a given list.
mergeUtf8Locales ( array $inputLocales ) : string[] Adds UTF-8 suffixes for each locale in given list.
setDefaultTimezone ( Silex\Application $app )

메소드 상세

addResources() 공개 정적인 메소드

Adds all resources that belong to a locale.
public static addResources ( Silex\Application $app, string $locale ) : array
$app Silex\Application
$locale string
리턴 array

boot() 공개 메소드

public boot ( Silex\Application $app )
$app Silex\Application

mergeGenericLocales() 보호된 메소드

[fr_FR, es, en_GB, en_US] -> [fr_FR, fr, es, en_GB, en_US, en]
protected mergeGenericLocales ( array $inputLocales ) : string[]
$inputLocales array
리턴 string[]

mergeUtf8Locales() 보호된 메소드

Adds UTF-8 suffixes for each locale in given list.
protected mergeUtf8Locales ( array $inputLocales ) : string[]
$inputLocales array
리턴 string[]

register() 공개 메소드

public register ( Silex\Application $app )
$app Silex\Application

setDefaultTimezone() 보호된 메소드

protected setDefaultTimezone ( Silex\Application $app )
$app Silex\Application