1 | <?php |
||
22 | abstract class TranslationManager implements TranslationManagerInterface |
||
23 | { |
||
24 | /** |
||
25 | * Class implementing the {@link TranslationInterface} managed by this manager |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $class; |
||
30 | |||
31 | /** |
||
32 | * @var EventDispatcherInterface |
||
33 | */ |
||
34 | protected $eventDispatcher; |
||
35 | |||
36 | /** |
||
37 | * @param string $class Class name of managed {@link TranslationInterface} objects |
||
38 | * @param EventDispatcherInterface $eventDispatcher Event dispatcher used to propagate new, modified |
||
39 | * and removed translations |
||
40 | */ |
||
41 | 10 | public function __construct($class, EventDispatcherInterface $eventDispatcher) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function createTranslation() |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | 1 | public function findAllTranslations() |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 1 | public function findTranslationsByLocaleAndDomain($locale, $domain = 'messages') |
|
77 | } |
||
78 |