1 | <?php |
||
9 | class TranslationFileExplorer |
||
10 | { |
||
11 | /** |
||
12 | * An array of supported file formats to look for |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | private $fileFormats = array(); |
||
17 | |||
18 | /** |
||
19 | * Looks in the path for Resources/translation files and returns a finder object with the result |
||
20 | * |
||
21 | * @param string $path |
||
22 | * @param array $locales |
||
23 | * |
||
24 | * @return \Symfony\Component\Finder\Finder |
||
25 | */ |
||
26 | 2 | public function find($path, array $locales, $translationDirectory = null) |
|
43 | |||
44 | 6 | public function setFileFormats($fileFormats) |
|
48 | |||
49 | protected function getDefaultTranslationFolder(): string |
||
57 | } |
||
58 |