You are here

public function LoaderInterface::load in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Loader/LoaderInterface.php \Symfony\Component\Translation\Loader\LoaderInterface::load()

Loads a locale.

Parameters

mixed $resource A resource:

string $locale A locale:

string $domain The domain:

Return value

MessageCatalogue A MessageCatalogue instance

Throws

NotFoundResourceException when the resource cannot be found

InvalidResourceException when the resource cannot be loaded

4 methods override LoaderInterface::load()
ArrayLoader::load in vendor/symfony/translation/Loader/ArrayLoader.php
Loads a locale.
IcuResFileLoader::load in vendor/symfony/translation/Loader/IcuResFileLoader.php
Loads a locale.
QtFileLoader::load in vendor/symfony/translation/Loader/QtFileLoader.php
Loads a locale.
XliffFileLoader::load in vendor/symfony/translation/Loader/XliffFileLoader.php
Loads a locale.

File

vendor/symfony/translation/Loader/LoaderInterface.php, line 37

Class

LoaderInterface
LoaderInterface is the interface implemented by all translation loaders.

Namespace

Symfony\Component\Translation\Loader

Code

public function load($resource, $locale, $domain = 'messages');