예제 #1
0
 /**
  * {@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;
 }
예제 #2
0
파일: Theme.php 프로젝트: ahmadrabie/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeParent(ThemeInterface $theme)
 {
     $this->parents->removeElement($theme);
 }