composer package updates
[openemr.git] / vendor / symfony / translation / Loader / LoaderInterface.php
blob6b65fe380bc9e6cf73b243a90400a5b6a7300186
1 <?php
3 /*
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;
18 /**
19 * LoaderInterface is the interface implemented by all translation loaders.
21 * @author Fabien Potencier <fabien@symfony.com>
23 interface LoaderInterface
25 /**
26 * Loads a locale.
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');