| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 2 | public function process(ContainerBuilder $container) |
|
| 22 | { |
||
| 23 | /** @var Glob $glob */ |
||
| 24 | 2 | $glob = $container->get(Glob::class); |
|
| 25 | |||
| 26 | 2 | $locales = $glob->execGlob(ROOT . 'lang/*.po'); |
|
| 27 | 2 | $locales = array_map(function ($file) { |
|
| 28 | 1 | return basename($file, '.po'); |
|
| 29 | 2 | }, $locales); |
|
| 30 | |||
| 31 | 2 | $container->setParameter('locales', $locales); |
|
| 32 | 2 | } |
|
| 33 | } |
||
| 34 |