You are here

interface LoaderInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/translation/Loader/LoaderInterface.php \Symfony\Component\Translation\Loader\LoaderInterface
  2. 8 vendor/symfony/validator/Mapping/Loader/LoaderInterface.php \Symfony\Component\Validator\Mapping\Loader\LoaderInterface
  3. 8 vendor/symfony/serializer/Mapping/Loader/LoaderInterface.php \Symfony\Component\Serializer\Mapping\Loader\LoaderInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Loader/LoaderInterface.php \Symfony\Component\Translation\Loader\LoaderInterface

LoaderInterface is the interface implemented by all translation loaders.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of LoaderInterface

All classes that implement LoaderInterface

2 files declare their use of LoaderInterface
Translator.php in vendor/symfony/translation/Translator.php
TranslatorCacheTest.php in vendor/symfony/translation/Tests/TranslatorCacheTest.php
2 string references to 'LoaderInterface'
NameGeneratorSpec::its_name_generates_name_based_only_on_class_if_its_available in vendor/phpspec/prophecy/spec/Prophecy/Doubler/NameGeneratorSpec.php
NameGeneratorSpec::its_name_generates_name_based_on_interface_shortnames in vendor/phpspec/prophecy/spec/Prophecy/Doubler/NameGeneratorSpec.php

File

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

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
   *
   * @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