Esempio n. 1
0
 /**
  * Add flash message for session
  * 
  * @param String $key
  * @param String $message
  */
 public static function addFlashMessage($key, $message)
 {
     $session = new Session();
     $session->addAttr($key, $message);
     $storage = new Storage(self::NAME);
     $storage->addSession($key, $session);
 }
Esempio n. 2
0
 public function setRole(Roles $role)
 {
     $session = new Session(self::NAME);
     $session->addObject('role', $role);
     $storage = new Storage(self::NAME);
     $storage->addSession('acl', $session);
     return $this;
 }