src/Saml.php
public function prepareLogoutResponse(LogoutRequest $request)
    {
        $response = $this->createLogoutResponse();

        $idp = $this->getMetadata()->getFirstIdpSsoDescriptor();

        $location = $idp->getFirstSingleLogoutService()->getResponseLocation()
            ? $idp->getFirstSingleLogoutService()->getResponseLocation()
            : $idp->getFirstSingleLogoutService()->getLocation();

        $response->setDestination($location);
        $response->setRelayState($request->getRelayState());

        $this->signMessage($response);

        return $response;
    }
public function prepareLogoutResponse(LogoutRequest $request)
    {
        $response = $this->createLogoutResponse();

        $idp = $this->getMetadata()->getFirstIdpSsoDescriptor();

        $location = $idp->getFirstSingleLogoutService()->getResponseLocation()
            ? $idp->getFirstSingleLogoutService()->getResponseLocation()
            : $idp->getFirstSingleLogoutService()->getLocation();

        $response->setDestination($location);
        $response->setRelayState($request->getRelayState());

        $this->signMessage($response);

        return $response;
    }
public function prepareLogoutResponse ( LogoutRequest $ request ) { $ response = $ this -> createLogoutResponse ( ) ; $ idp = $ this -> getMetadata ( ) -> getFirstIdpSsoDescriptor ( ) ; $ location = $ idp -> getFirstSingleLogoutService ( ) -> getResponseLocation ( ) ? $ idp -> getFirstSingleLogoutService ( ) -> getResponseLocation ( ) : $ idp -> getFirstSingleLogoutService ( ) -> getLocation ( ) ; $ response -> setDestination ( $ location ) ; $ response -> setRelayState ( $ request -> getRelayState ( ) ) ; $ this -> signMessage ( $ response ) ; return $ response ; }
Prepare a LogoutResponse to be send

@param LogoutRequest $request

@return LogoutResponse
Prepare a LogoutResponse to be send