Gc\Mvc\Factory\CacheServiceFactory::createService PHP Method

createService() public method

Create the cache service from the configuration
public createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : CacheService
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface Service Manager
return Gc\Mvc\Service\CacheService
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $cacheStorage = $serviceLocator->get('Cache');
        return new CacheService($cacheStorage);
    }
CacheServiceFactory