ArrayLoader.php
2 months ago
CsvFileLoader.php
2 months ago
FileLoader.php
2 months ago
IcuDatFileLoader.php
2 months ago
IcuResFileLoader.php
2 months ago
IniFileLoader.php
2 months ago
JsonFileLoader.php
2 months ago
LoaderInterface.php
2 months ago
MoFileLoader.php
2 months ago
PhpFileLoader.php
2 months ago
PoFileLoader.php
2 months ago
QtFileLoader.php
2 months ago
XliffFileLoader.php
2 months ago
YamlFileLoader.php
2 months ago
LoaderInterface.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace ProfilePressVendor\Symfony\Component\Translation\Loader; |
| 12 | |
| 13 | use ProfilePressVendor\Symfony\Component\Translation\Exception\InvalidResourceException; |
| 14 | use ProfilePressVendor\Symfony\Component\Translation\Exception\NotFoundResourceException; |
| 15 | use ProfilePressVendor\Symfony\Component\Translation\MessageCatalogue; |
| 16 | /** |
| 17 | * LoaderInterface is the interface implemented by all translation loaders. |
| 18 | * |
| 19 | * @author Fabien Potencier <fabien@symfony.com> |
| 20 | */ |
| 21 | interface LoaderInterface |
| 22 | { |
| 23 | /** |
| 24 | * Loads a locale. |
| 25 | * |
| 26 | * @param mixed $resource A resource |
| 27 | * @param string $locale A locale |
| 28 | * @param string $domain The domain |
| 29 | * |
| 30 | * @return MessageCatalogue |
| 31 | * |
| 32 | * @throws NotFoundResourceException when the resource cannot be found |
| 33 | * @throws InvalidResourceException when the resource cannot be loaded |
| 34 | */ |
| 35 | public function load($resource, string $locale, string $domain = 'messages'); |
| 36 | } |
| 37 |