public function __destruct() { parent::__destruct(); if ($this->m_session) { $_SESSION = $this->m_session->toArray(); } unset($this->m_router, $this->m_session, $this->m_database); }
/** * Get route pathway segments * @return array */ public function getSegments() { return array_merge($this->m_path->toArray(), $this->m_param->toArray()); }