protected function createLoginPath(Request $request)
    {
        $url = $this->loginPath;
        $url .= $this->appendNextUrl($request) ?  '?'. self::NEXT_URL_PARAMETER . '=' . $request->getPathInfo() : '';

        return $url;
    }