4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation\Loader;
14 use Symfony\Component\Translation\MessageCatalogue;
15 use Symfony\Component\Translation\Exception\InvalidResourceException;
16 use Symfony\Component\Translation\Exception\NotFoundResourceException;
19 * LoaderInterface is the interface implemented by all translation loaders.
21 * @author Fabien Potencier <fabien@symfony.com>
23 interface LoaderInterface
28 * @param mixed $resource A resource
29 * @param string $locale A locale
30 * @param string $domain The domain
32 * @return MessageCatalogue A MessageCatalogue instance
34 * @throws NotFoundResourceException when the resource cannot be found
35 * @throws InvalidResourceException when the resource cannot be loaded
37 public function load($resource, $locale, $domain = 'messages');