src/Zicht/Bundle/FrameworkExtraBundle/Controller/TranslationController.php
private function getTranslationsForDomain($locale, $domain)
    {
        $allMessages = $this->getTranslationsForLocale($locale);

        if (!array_key_exists($domain, $allMessages)) {
            throw new \Exception('Domain ' . $domain . ' not found in the translations for locale ' . $locale);
        }

        return $allMessages[$domain];
    }
private function getTranslationsForDomain($locale, $domain)
    {
        $allMessages = $this->getTranslationsForLocale($locale);

        if (!array_key_exists($domain, $allMessages)) {
            throw new \Exception('Domain ' . $domain . ' not found in the translations for locale ' . $locale);
        }

        return $allMessages[$domain];
    }
private function getTranslationsForDomain ( $ locale , $ domain ) { $ allMessages = $ this -> getTranslationsForLocale ( $ locale ) ; if ( ! array_key_exists ( $ domain , $ allMessages ) ) { throw new \ Exception ( 'Domain ' . $ domain . ' not found in the translations for locale ' . $ locale ) ; } return $ allMessages [ $ domain ] ; }
Retrieve all translations for the provided locale and domain

@param string $locale
@param string $domain
@return array
@throws \Exception
Retrieve all translations for the provided locale and domain