/** * Получить месторасположения меню, * опредённые в конфиге * @return array */ public function getLocations() { if (!is_null($this->locationsCache)) { return $this->locationsCache; } foreach ($this->menuConfig->getLocations() as $location) { $this->locationsCache[$location['alias']] = $this->translationManager->trans($location['name'], [], $location['trans_domain'] ?: null); } return $this->locationsCache; }
/** * Dumps the message catalogue. * * @param MessageCatalogue $messages The message catalogue * @param array $options Options that are used by the dumper */ public function dump(MessageCatalogue $messages, $options = []) { $this->translationManager->saveTranslations($messages, false, true); }