loadResource() public method

public loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )
$format string
$resource string
$domain string
$catalogue Symfony\Component\Translation\MessageCatalogue
Example #1
0
 private function doLoadCatalogue(array &$availableCatalogues, $locale)
 {
     $availableCatalogues[$locale] = $catalogue = new MessageCatalogue($locale);
     if (isset($this->resources[$locale])) {
         foreach ($this->resources[$locale] as $resource) {
             $this->loader->loadResource($resource[0], $resource[1], $resource[2], $catalogue);
         }
     }
     return $catalogue;
 }