protected function prependBasePathToCookie(Request $request) { if (!($path = $this->options['cookie_path'])) { return; } $this->options['cookie_path'] = $request->getBasePath() . $path; }