Esempio n. 1
0
 /**
  *
  *
  * @return array
  */
 public function getUser()
 {
     try {
         $user = \Helper::getSessionCachedUser();
         return $user;
     } catch (\Exception $e) {
         abort('404');
     }
 }
Esempio n. 2
0
 /**
  * 
  *
  * @return mixed 
  * @throws UserNotCachedException
  * @throws UserNotSubscribedException;
  * @static 
  */
 public static function getSessionCachedUser()
 {
     return \App\Werashop\Helper\Helper::getSessionCachedUser();
 }