Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function createService(ServiceLocatorInterface $services) |
||
38 | { |
||
39 | $appConfig = $services->get('ApplicationConfig'); |
||
40 | $config = $services->has('Config') ? $services->get('Config') : []; |
||
41 | $options = ArrayUtils::merge( |
||
42 | !empty($appConfig[$this::CONFIG_KEY]) ? $appConfig[$this::CONFIG_KEY] : [], |
||
43 | !empty($config[$this::CONFIG_KEY]) ? $config[$this::CONFIG_KEY] : [] |
||
44 | ); |
||
45 | return new ModuleOptions($options); |
||
46 | } |
||
47 | } |
||
48 |