Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
28 | { |
||
29 | $options = $serviceLocator->get('Config'); |
||
30 | $options = isset($options['stroker_form']) ? $options['stroker_form'] : null; |
||
31 | |||
32 | if (null === $options) { |
||
33 | throw new RuntimeException('Configuration with key stroker_form not found'); |
||
34 | } |
||
35 | |||
36 | return new ModuleOptions($options); |
||
37 | } |
||
38 | } |
||
39 |