| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | protected function registerResources() |
||
| 34 | { |
||
| 35 | $folder = __DIR__ . '/resources/lang/'; |
||
| 36 | $languages = $this->getContainer()->get('translation.languages'); |
||
| 37 | |||
| 38 | $translator = $this->getContainer()->get('translator'); |
||
| 39 | |||
| 40 | foreach ($languages as $language) { |
||
| 41 | $path = $folder . $language; |
||
| 42 | if (is_dir($path)) { |
||
| 43 | $translator->addResource('php', $path, $language); |
||
| 44 | } |
||
| 48 |