示例#1
0
 function load(k_Context $context)
 {
     if ($context->session('identity')) {
         return $context->session('identity');
     }
     return new k_Anonymous();
 }
示例#2
0
 /**
  * @param string
  * @param mixed   The default value to return, if the value doesn't exist
  * @return string
  */
 function session($key = null, $default = null)
 {
     return $this->context->session($key, $default);
 }