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