1 | <?php |
||
26 | class TranslationManager extends BaseTranslationManager |
||
27 | { |
||
28 | /** |
||
29 | * @var ObjectManager |
||
30 | */ |
||
31 | private $objectManager; |
||
32 | |||
33 | /** |
||
34 | * @var ObjectRepository |
||
35 | */ |
||
36 | private $repository; |
||
37 | |||
38 | /** |
||
39 | * @param ObjectManager $objectManager Object manager for translation entities |
||
40 | * @param string $class Translation model class name |
||
41 | * @param EventDispatcherInterface $eventDispatcher Event dispatcher used to propagate new, modified |
||
42 | * and removed translations |
||
43 | */ |
||
44 | 10 | public function __construct(ObjectManager $objectManager, $class, EventDispatcherInterface $eventDispatcher) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 1 | public function findTranslationBy(array $criteria) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 3 | public function findTranslationsBy(array $criteria) |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 3 | public function updateTranslation(TranslationInterface $translation) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 2 | public function removeTranslation(TranslationInterface $translation) |
|
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function findTranslationFreshness($timestamp) |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function getTranslationList(array $criteria) |
||
113 | } |
||
114 |