/** * @inheritdoc */ public function removeSession(SessionInterface $session) { if ($this->sessions->contains($session)) { $this->sessions->removeElement($session); $session->removeTerm($this); } }
/** * @param SessionInterface $session */ public function removeAdministeredSession(SessionInterface $session) { $this->administeredSessions->removeElement($session); $session->removeAdministrator($this); }