1 | <?php |
||
25 | class Export |
||
26 | { |
||
27 | /** |
||
28 | * @var Repository |
||
29 | */ |
||
30 | private $repository; |
||
31 | |||
32 | /** |
||
33 | * @var ExporterInterface |
||
34 | */ |
||
35 | private $exporter; |
||
36 | |||
37 | /** |
||
38 | * @var LoadersContainer |
||
39 | */ |
||
40 | private $loadersContainer; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | private $managedLocales = []; |
||
46 | |||
47 | /** |
||
48 | * @var Translation[] |
||
49 | */ |
||
50 | private $refresh = []; |
||
51 | |||
52 | /** |
||
53 | * @param LoadersContainer $loadersContainer |
||
54 | * @param Repository $repository |
||
55 | 5 | * @param ExporterInterface $exporter |
|
56 | */ |
||
57 | public function __construct( |
||
66 | |||
67 | /** |
||
68 | * Exports translations from ES to files. |
||
69 | * |
||
70 | 5 | * @param array $domains To export. |
|
71 | */ |
||
72 | 5 | public function export($domains = []) |
|
97 | |||
98 | 4 | /** |
|
99 | 4 | * Sets managed locales. |
|
100 | * |
||
101 | * @param array $managedLocales |
||
102 | */ |
||
103 | public function setManagedLocales($managedLocales) |
||
107 | |||
108 | /** |
||
109 | * @return array |
||
110 | */ |
||
111 | public function getManagedLocales() |
||
115 | |||
116 | 5 | /** |
|
117 | * Get translations for export. |
||
118 | 5 | * |
|
119 | 5 | * @param array $domains To read from storage. |
|
120 | * |
||
121 | * @return array |
||
122 | 1 | */ |
|
123 | 1 | private function readStorage($domains) |
|
151 | |||
152 | /** |
||
153 | * @return Filesystem |
||
154 | */ |
||
155 | protected function getFilesystem() |
||
159 | |||
160 | /** |
||
161 | * {@inheritdoc} |
||
162 | */ |
||
163 | public function read($locales = [], $domains = []) |
||
177 | } |
||
178 |