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