| 148 |
lars |
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 |
|
|
|
12 |
namespace Symfony\Component\Translation\Provider;
|
|
|
13 |
|
|
|
14 |
use Symfony\Component\Translation\TranslatorBag;
|
|
|
15 |
use Symfony\Component\Translation\TranslatorBagInterface;
|
|
|
16 |
|
|
|
17 |
interface ProviderInterface
|
|
|
18 |
{
|
|
|
19 |
public function __toString(): string;
|
|
|
20 |
|
|
|
21 |
/**
|
|
|
22 |
* Translations available in the TranslatorBag only must be created.
|
|
|
23 |
* Translations available in both the TranslatorBag and on the provider
|
|
|
24 |
* must be overwritten.
|
|
|
25 |
* Translations available on the provider only must be kept.
|
|
|
26 |
*/
|
|
|
27 |
public function write(TranslatorBagInterface $translatorBag): void;
|
|
|
28 |
|
|
|
29 |
public function read(array $domains, array $locales): TranslatorBag;
|
|
|
30 |
|
|
|
31 |
public function delete(TranslatorBagInterface $translatorBag): void;
|
|
|
32 |
}
|