| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| 1 | <?php |
||
| 17 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
| 18 | { |
||
| 19 | 1 | $config = $serviceLocator->get('config')['mxdimodule']; |
|
| 20 | |||
| 21 | 1 | $configuration = new Configuration(); |
|
| 22 | 1 | $configuration->setProxiesNamespace($config['proxy_namespace']); |
|
| 23 | 1 | $configuration->setProxiesTargetDir($config['proxy_dir']); |
|
| 24 | |||
| 25 | 1 | spl_autoload_register($configuration->getProxyAutoloader()); |
|
| 26 | |||
| 27 | 1 | return new LazyLoadingValueHolderFactory($configuration); |
|
| 28 | } |
||
| 29 | } |
||
| 30 |