| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | public function process(ContainerBuilder $container) |
||
| 14 | { |
||
| 15 | $defaultLocale = $container->getParameter('kernel.default_locale'); |
||
| 16 | $locales = $container->getParameter('harentius_blog.locales'); |
||
| 17 | $supportedLocalesWithoutDefault = $locales; |
||
| 18 | |||
| 19 | if (($key = array_search($defaultLocale, $supportedLocalesWithoutDefault)) !== false) { |
||
| 20 | unset($supportedLocalesWithoutDefault[$key]); |
||
| 21 | } |
||
| 22 | |||
| 23 | $container->setParameter( |
||
| 24 | 'harentius_blog.supported_locales_without_default', |
||
| 25 | implode('|', $supportedLocalesWithoutDefault) |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |