private function getPath() { if (null === $this->request) { return null; } return $this->request->getBasePath(); }