LoaderInterface

interface LoaderInterface

LoaderInterface is the interface implemented by all translation loaders.

Methods

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

Loads a locale.

Details

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

NotFoundResourceException when the resource cannot be found
InvalidResourceException when the resource cannot be loaded
doc_Symfony
2016-10-28 06:22:48
Comments
Leave a Comment

Please login to continue.