public function clear(array $options = array()) { if (!$this->isStarted() && !$this->_start()) { throw new RuntimeException('Could not start session.'); } return function ($class, $params) { return session_destroy(); }; }