/** * Obtém uma instância do objeto session para manipulação dos dados de autenticação. * * @return br\gov\sial\core\util\Session */ private static function _getSession() { $sessionExpire = Registry::get('bootstrap')->config(self::SESSION_EXPIRE); return Session::start(self::NAMESPACE_SESSION, $sessionExpire); }
/** * Construtor. * @param string $type */ public function __construct($type = NULL) { $this->_defaultType = !empty($type) ? $type : 'warning'; $this->_session = Session::start($this->getNamespace()); }