Spec-Zone.ru › Symfony 3.0

YamlFileLoader

class YamlFileLoader extends FileLoader

YamlFileLoader загружает переводы из файлов Yaml.

Методы

MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

Загружает локаль.

from 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.0/Symfony/Component/Translation/Loader/YamlFileLoader.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API