Neos\Flow\I18n\Service::initializeObject PHP Method

initializeObject() public method

Initializes the locale service
public initializeObject ( ) : void
return void
    public function initializeObject()
    {
        $this->configuration = new Configuration($this->settings['defaultLocale']);
        $this->configuration->setFallbackRule($this->settings['fallbackRule']);
        if ($this->cache->has('availableLocales')) {
            $this->localeCollection = $this->cache->get('availableLocales');
        } else {
            $this->generateAvailableLocalesCollectionByScanningFilesystem();
            $this->cache->set('availableLocales', $this->localeCollection);
        }
    }