示例#1
0
 /**
  * @return string
  */
 public function getMessages()
 {
     $messages = [];
     if (isset(self::$session->messages)) {
         $messages = self::$session->messages;
         self::$session->unsetAll();
     }
     return $messages;
 }
示例#2
0
 /**
  * namespaceUnset() - unset a namespace or a variable within a namespace
  *
  * @param string $namespace
  * @throws \Micro\Session\Exception
  * @return void
  */
 public static function namespaceUnset($namespace)
 {
     parent::_namespaceUnset($namespace);
     SessionNamespace::resetSingleInstance($namespace);
 }