예제 #1
0
 protected function getContextKey(ResponseContext $context = null)
 {
     if (!$context) {
         return 'no_context';
     }
     $cacheParts = array();
     $values = $context->getAllValues();
     ksort($values);
     foreach ($values as $value) {
         $cacheParts[] = $value;
     }
     return implode('_', $cacheParts);
 }