public function registerCacheManager()
 {
     $this->app->bind(CacheManager::class, function ($app) {
         $manager = new CacheManager($app['config']['doctrine::doctrine.cache']);
         $manager->add(new Cache\ApcProvider());
         $manager->add(new Cache\MemcacheProvider());
         $manager->add(new Cache\RedisProvider());
         $manager->add(new Cache\XcacheProvider());
         $manager->add(new Cache\NullProvider());
         return $manager;
     });
 }
 public function registerCacheManager()
 {
     $this->app->bind('Mitch\\LaravelDoctrine\\CacheManager', function ($app) {
         $manager = new CacheManager($app['config']['doctrine::doctrine.cache']);
         $manager->add(new CacheProviders\ApcProvider());
         $manager->add(new CacheProviders\MemcacheProvider());
         $manager->add(new CacheProviders\RedisProvider());
         $manager->add(new CacheProviders\XcacheProvider());
         $manager->add(new CacheProviders\NullProvider());
         return $manager;
     });
 }