| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function createService(ServiceLocatorInterface $services) |
||
| 28 | { |
||
| 29 | $config = $services->get('Config'); |
||
| 30 | $drawConfig = isset($config['webino_draw']) ? $config['webino_draw'] : []; |
||
| 31 | |||
| 32 | if (array_key_exists('instructions', $drawConfig)) { |
||
| 33 | $instructionsFactory = $services->get(InstructionsFactory::class); |
||
| 34 | $drawConfig['instructions'] = $instructionsFactory->create($drawConfig['instructions']); |
||
| 35 | } |
||
| 36 | |||
| 37 | return new ModuleOptions($drawConfig); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |