Class

Symfony\Component\Translation\Loader\YamlFileLoader

class YamlFileLoader extends ArrayLoader implements LoaderInterface

YamlFileLoader loads translations from Yaml files.

Methods

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

Loads a locale.

Details

at line 36
public MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

Loads a locale.

Parameters

mixed $resource A resource
string $locale A locale
string $domain The domain

Return Value

MessageCatalogue A MessageCatalogue instance

Exceptions

InvalidResourceException when the resource cannot be loaded