/**
* @return Configuration
*/
public function setCache(CacheProvider
$cache) { // Set namespace for doctrine cache provider to avoid collisions
$namespace =
$this->cacheNamespace !== null ?
$this->cacheNamespace :
md5( $this->
getProxyDir() .
$this->release->
getRevision() );
$cache->
setNamespace('dc2_' .
$namespace . '_'
);
$this->
setMetadataCacheImpl($cache);
$this->
setQueryCacheImpl($cache);
$this->
setResultCacheImpl($cache);
return $this;
} /**
* @return CacheProvider|null
*/
public function detectCacheProvider() {