| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| 1 | <?php |
||
| 16 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 17 | { |
||
| 18 | |||
| 19 | /* |
||
| 20 | $config = $serviceLocator->get('Config'); |
||
| 21 | $config = isset($config['Soluble\Normalist']) ? $config['Soluble\Normalist'] : array(); |
||
| 22 | if (empty($config)) { |
||
| 23 | throw new \Exception("Cannot locate Soluble\Normalist configuration, please review your configuration."); |
||
| 24 | } |
||
| 25 | */ |
||
| 26 | |||
| 27 | $converter = new Converter(); |
||
| 28 | if ($serviceLocator->has('Cache\SolubleMediaConverter')) { |
||
| 29 | $converter->setCache($serviceLocator->get('Cache\SolubleMediaConverter')); |
||
| 30 | } |
||
| 31 | return $converter; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |