AbstractProviderFactory.php
1 month ago
Dsn.php
1 month ago
FilteringProvider.php
1 month ago
NullProvider.php
2 years ago
NullProviderFactory.php
2 years ago
ProviderFactoryInterface.php
2 years ago
ProviderInterface.php
2 years ago
TranslationProviderCollection.php
2 years ago
TranslationProviderCollectionFactory.php
1 month ago
NullProvider.php
36 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\Provider; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Translation\TranslatorBag; |
| 14 | use IAWPSCOPED\Symfony\Component\Translation\TranslatorBagInterface; |
| 15 | /** |
| 16 | * @author Mathieu Santostefano <msantostefano@protonmail.com> |
| 17 | * @internal |
| 18 | */ |
| 19 | class NullProvider implements ProviderInterface |
| 20 | { |
| 21 | public function __toString() : string |
| 22 | { |
| 23 | return 'null'; |
| 24 | } |
| 25 | public function write(TranslatorBagInterface $translatorBag, bool $override = \false) : void |
| 26 | { |
| 27 | } |
| 28 | public function read(array $domains, array $locales) : TranslatorBag |
| 29 | { |
| 30 | return new TranslatorBag(); |
| 31 | } |
| 32 | public function delete(TranslatorBagInterface $translatorBag) : void |
| 33 | { |
| 34 | } |
| 35 | } |
| 36 |