public function test_a_string_class_can_be_use_as_extend()
 {
     CacheManager::extend('custom3', StubCacheProvider::class);
     $driver = CacheManager::resolve('custom3');
     $this->assertEquals('stub', $driver);
 }
 /**
  * @return mixed
  */
 public function getCache()
 {
     if (config('doctrine.cache.default')) {
         return CacheManager::resolve(config('doctrine.cache.default'));
     }
 }
 /**
  * Register the cache drivers
  */
 protected function setupCache()
 {
     CacheManager::registerDrivers($this->app['config']['cache']['stores']);
 }