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
;
18 * LoaderInterface is the interface implemented by all translation loaders.
20 * @author Fabien Potencier <fabien@symfony.com>
24 interface LoaderInterface
29 * @param mixed $resource A resource
30 * @param string $locale A locale
31 * @param string $domain The domain
33 * @return MessageCatalogue A MessageCatalogue instance
37 * @throws NotFoundResourceException when the resource cannot be found
38 * @throws InvalidResourceException when the resource cannot be loaded
40 public function load($resource, $locale, $domain = 'messages');