Beispiel #1
0
 /**
  * Returns a cache key for the given Request.
  *
  * @param Symfony\Components\HttpKernel\Request $request A Request instance
  *
  * @return string A key for the given Request
  */
 public function getCacheKey(Request $request)
 {
     if (isset($this->keyCache[$request])) {
         return $this->keyCache[$request];
     }
     return $this->keyCache[$request] = 'md' . sha1($request->getUri());
 }