Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Translation\Loader; Chris@0: Chris@0: use Symfony\Component\Translation\Exception\InvalidResourceException; Chris@0: use Symfony\Component\Translation\Exception\NotFoundResourceException; Chris@17: use Symfony\Component\Translation\MessageCatalogue; Chris@0: Chris@0: /** Chris@0: * LoaderInterface is the interface implemented by all translation loaders. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface LoaderInterface Chris@0: { Chris@0: /** Chris@0: * Loads a locale. Chris@0: * Chris@0: * @param mixed $resource A resource Chris@0: * @param string $locale A locale Chris@0: * @param string $domain The domain Chris@0: * Chris@0: * @return MessageCatalogue A MessageCatalogue instance Chris@0: * Chris@0: * @throws NotFoundResourceException when the resource cannot be found Chris@0: * @throws InvalidResourceException when the resource cannot be loaded Chris@0: */ Chris@0: public function load($resource, $locale, $domain = 'messages'); Chris@0: }