| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 29 | { |
||
| 30 | $appConfig = $serviceLocator->get('config'); |
||
| 31 | $isModuleConfig = |
||
| 32 | is_array($appConfig) |
||
| 33 | && array_key_exists(Module::MODULE_SERVICE_MANAGER_CONFIG_KEY, $appConfig) |
||
| 34 | && is_array($appConfig[Module::MODULE_SERVICE_MANAGER_CONFIG_KEY]); |
||
| 35 | $moduleServiceManagerConfig = $isModuleConfig ? $appConfig[Module::MODULE_SERVICE_MANAGER_CONFIG_KEY] : []; |
||
| 36 | |||
| 37 | $configuration = new Config($moduleServiceManagerConfig); |
||
| 38 | $jmsSerializerModuleServiceManager = new JmsSerializerModuleServiceManager($configuration); |
||
| 39 | $jmsSerializerModuleServiceManager->setServiceLocator($serviceLocator); |
||
| 40 | return $jmsSerializerModuleServiceManager; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |