YamlFileLoader
class YamlFileLoader extends FileLoader
YamlFileLoader загружает переводы из файлов Yaml.
Методы
| MessageCatalogue | load(mixed $resource, string $locale, string $domain = 'messages') Загружает локаль. | из FileLoader |
Подробности
MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')
Загружает локаль.
Параметры
| mixed | $resource | Ресурс |
| string | $locale | Локаль |
| string | $domain | Домен |
Возвращаемое значение
| MessageCatalogue | Экземпляр MessageCatalogue |
Исключения
| NotFoundResourceException | если ресурс не найден |
| InvalidResourceException | если ресурс не может быть загружен |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Translation/Loader/YamlFileLoader.html