You are here

interface LoaderInterface in Plug 7

Same name in this branch
  1. 7 lib/Symfony/translation/Loader/LoaderInterface.php \Symfony\Component\Translation\Loader\LoaderInterface
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php \Symfony\Component\Validator\Mapping\Loader\LoaderInterface

LoaderInterface is the interface implemented by all translation loaders.

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

Expanded class hierarchy of LoaderInterface

All classes that implement LoaderInterface

2 files declare their use of LoaderInterface
Translator.php in lib/Symfony/translation/Translator.php
TranslatorCacheTest.php in lib/Symfony/translation/Tests/TranslatorCacheTest.php

File

lib/Symfony/translation/Loader/LoaderInterface.php, line 25

Namespace

Symfony\Component\Translation\Loader
View source
interface LoaderInterface {

  /**
   * Loads a locale.
   *
   * @param mixed  $resource A resource
   * @param string $locale   A locale
   * @param string $domain   The domain
   *
   * @return MessageCatalogue A MessageCatalogue instance
   *
   * @api
   *
   * @throws NotFoundResourceException when the resource cannot be found
   * @throws InvalidResourceException  when the resource cannot be loaded
   */
  public function load($resource, $locale, $domain = 'messages');

}

Members

Namesort descending Modifiers Type Description Overrides
LoaderInterface::load public function Loads a locale. 4