public function start(Request $request, AuthenticationException $authException = null)
    {
        //The URL have to be completed by the current request uri,
        // because Cas Server need to know where redirect user after authentication.
        return new RedirectResponse($this->cas->getUri().$request->getUri());
    }
public function start(Request $request, AuthenticationException $authException = null)
    {
        //The URL have to be completed by the current request uri,
        // because Cas Server need to know where redirect user after authentication.
        return new RedirectResponse($this->cas->getUri().$request->getUri());
    }
public function start ( Request $ request , AuthenticationException $ authException = null ) { //The URL have to be completed by the current request uri, // because Cas Server need to know where redirect user after authentication. return new RedirectResponse ( $ this -> cas -> getUri ( ) . $ request -> getUri ( ) ) ; }
Called when authentication is needed, but it's not sent.

@param Request                      $request
@param AuthenticationException|null $authException

@return RedirectResponse
Called when authentication is needed but it s not sent .