/** * @return string */ public function getMessages() { $messages = []; if (isset(self::$session->messages)) { $messages = self::$session->messages; self::$session->unsetAll(); } return $messages; }
/** * 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); }