| 1 | <?php |
||
| 8 | class TranslationFileExplorer |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Symfony default translation folder (in a bundle) |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $defaultTranslationFolder = 'Resources/translations'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * An array of supported file formats to look for |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $fileFormats = array(); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Looks in the path for Resources/translation files and returns a finder object with the result |
||
| 26 | * |
||
| 27 | * @param string $path |
||
| 28 | * @param array $locales |
||
| 29 | * |
||
| 30 | * @return \Symfony\Component\Finder\Finder |
||
| 31 | */ |
||
| 32 | public function find($path, array $locales, $translationDirectory = null) |
||
| 49 | |||
| 50 | public function setFileFormats($fileFormats) |
||
| 54 | } |
||
| 55 |