public function delete() { if (empty($this->session->get('game'))) { return false; } $this->session->offsetUnset('game'); return true; }
public function actionQuit() { $this->session->offsetUnset('started'); $this->storage->delete(); return $this->redirect('/game/index'); }