/** * {@inheritdoc} */ public function load($resource, $locale, $domain = 'messages') { $messageCatalogue = $this->loader->load($resource, $locale, $domain); if (null !== ($theme = $this->resourcesToThemes->get(realpath($resource)))) { $messages = $messageCatalogue->all($domain); foreach ($messages as $key => $value) { unset($messages[$key]); $messages[$key . '|' . $theme->getLogicalName()] = $value; } $messageCatalogue->replace($messages, $domain); } return $messageCatalogue; }
/** * {@inheritdoc} */ public function removeParent(ThemeInterface $theme) { $this->parents->removeElement($theme); }