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