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

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

        return $url;
    }
protected function createLoginPath ( Request $ request ) { $ url = $ this -> loginPath ; $ url .= $ this -> appendNextUrl ( $ request ) ? '?' . self :: NEXT_URL_PARAMETER . '=' . $ request -> getPathInfo ( ) : '' ; return $ url ; }
Returns the login path for the url and will append a next param

@param Request $request
@return string
Returns the login path for the url and will append a next param