| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 17 | { |
||
| 18 | // Configure the cache |
||
| 19 | $config = $serviceLocator->get('Config'); |
||
| 20 | $cacheConfig = isset($config['cache']) ? $config['cache'] : array(); |
||
| 21 | $cache = StorageFactory::factory($cacheConfig); |
||
| 22 | |||
| 23 | return new HtmlCache($cache); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |