| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 28 | { |
||
| 29 | /** @var array $appConfig */ |
||
| 30 | $appConfig = $serviceLocator->get('config'); |
||
| 31 | $config = []; |
||
| 32 | if (array_key_exists(Module::CONFIG_KEY, $appConfig)) { |
||
| 33 | $config = $appConfig[Module::CONFIG_KEY]; |
||
| 34 | } |
||
| 35 | return new ModuleOptions($config); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |