interface LoaderInterface in Plug 7
Same name in this branch
- 7 lib/Symfony/translation/Loader/LoaderInterface.php \Symfony\Component\Translation\Loader\LoaderInterface
- 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php \Symfony\Component\Validator\Mapping\Loader\LoaderInterface
LoaderInterface is the interface implemented by all translation loaders.
@author Fabien Potencier <fabien@symfony.com>
@api
Hierarchy
- interface \Symfony\Component\Translation\Loader\LoaderInterface
Expanded class hierarchy of LoaderInterface
All classes that implement LoaderInterface
2 files declare their use of LoaderInterface
- Translator.php in lib/
Symfony/ translation/ Translator.php - TranslatorCacheTest.php in lib/
Symfony/ translation/ Tests/ TranslatorCacheTest.php
File
- lib/
Symfony/ translation/ Loader/ LoaderInterface.php, line 25
Namespace
Symfony\Component\Translation\LoaderView source
interface LoaderInterface {
/**
* Loads a locale.
*
* @param mixed $resource A resource
* @param string $locale A locale
* @param string $domain The domain
*
* @return MessageCatalogue A MessageCatalogue instance
*
* @api
*
* @throws NotFoundResourceException when the resource cannot be found
* @throws InvalidResourceException when the resource cannot be loaded
*/
public function load($resource, $locale, $domain = 'messages');
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoaderInterface:: |
public | function | Loads a locale. | 4 |