public function getSessionId() : string { if (null !== $this->getCurrentRequest() && $this->request->hasSession()) { return $this->request->getSession()->getId(); } return ''; }