Пример #1
0
 public static function addFlashMessage($key, $message)
 {
     $session = new Session();
     $session->addAttr($key, $message);
     $storage = new Storage(self::NAME);
     $storage->addSession($key, $session);
 }
Пример #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;
 }