‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Localization\LanguageServiceFactory Class Reference

Public Member Functions

 __construct (Locales $locales, LocalizationFactory $localizationFactory, FrontendInterface $runtimeCache)
 
 create (Locale|string $locale)
 
 createFromUserPreferences (?AbstractUserAuthentication $user)
 
 createFromSiteLanguage (SiteLanguage $language)
 

Protected Attributes

Locales $locales
 
LocalizationFactory $localizationFactory
 
FrontendInterface $runtimeCache
 

Detailed Description

Definition at line 24 of file LanguageServiceFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::__construct ( Locales  $locales,
LocalizationFactory  $localizationFactory,
FrontendInterface  $runtimeCache 
)

Member Function Documentation

◆ create()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::create ( Locale|string  $locale)

◆ createFromSiteLanguage()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::createFromSiteLanguage ( SiteLanguage  $language)

◆ createFromUserPreferences()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::createFromUserPreferences ( ?AbstractUserAuthentication  $user)

Member Data Documentation

◆ $locales

Locales TYPO3\CMS\Core\Localization\LanguageServiceFactory::$locales
protected

◆ $localizationFactory

LocalizationFactory TYPO3\CMS\Core\Localization\LanguageServiceFactory::$localizationFactory
protected

◆ $runtimeCache

FrontendInterface TYPO3\CMS\Core\Localization\LanguageServiceFactory::$runtimeCache
protected