ArrayLoader.php
1 month ago
CsvFileLoader.php
1 month ago
FileLoader.php
1 month ago
IcuDatFileLoader.php
1 month ago
IcuResFileLoader.php
1 month ago
IniFileLoader.php
1 month ago
JsonFileLoader.php
1 month ago
LoaderInterface.php
1 month ago
MoFileLoader.php
1 month ago
PhpFileLoader.php
1 month ago
PoFileLoader.php
1 month ago
QtFileLoader.php
1 month ago
XliffFileLoader.php
1 month ago
YamlFileLoader.php
1 month ago
LoaderInterface.php
32 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 IAWPSCOPED\Symfony\Component\Translation\Loader; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Translation\Exception\InvalidResourceException; |
| 14 | use IAWPSCOPED\Symfony\Component\Translation\Exception\NotFoundResourceException; |
| 15 | use IAWPSCOPED\Symfony\Component\Translation\MessageCatalogue; |
| 16 | /** |
| 17 | * LoaderInterface is the interface implemented by all translation loaders. |
| 18 | * |
| 19 | * @author Fabien Potencier <fabien@symfony.com> |
| 20 | * @internal |
| 21 | */ |
| 22 | interface LoaderInterface |
| 23 | { |
| 24 | /** |
| 25 | * Loads a locale. |
| 26 | * |
| 27 | * @throws NotFoundResourceException when the resource cannot be found |
| 28 | * @throws InvalidResourceException when the resource cannot be loaded |
| 29 | */ |
| 30 | public function load(mixed $resource, string $locale, string $domain = 'messages') : MessageCatalogue; |
| 31 | } |
| 32 |