src/Saml.php
public function getHttpPostBindingResponse(SamlMessage $message)
    {
        $bindingFactory = new BindingFactory();
        $postBinding = $bindingFactory->create(SamlConstants::BINDING_SAML2_HTTP_POST);

        $messageContext = new MessageContext();
        $messageContext->setMessage($message);

        $httpResponse = $postBinding->send($messageContext);

        return new HtmlResponse($httpResponse->getContent());
    }
public function getHttpPostBindingResponse(SamlMessage $message)
    {
        $bindingFactory = new BindingFactory();
        $postBinding = $bindingFactory->create(SamlConstants::BINDING_SAML2_HTTP_POST);

        $messageContext = new MessageContext();
        $messageContext->setMessage($message);

        $httpResponse = $postBinding->send($messageContext);

        return new HtmlResponse($httpResponse->getContent());
    }
public function getHttpPostBindingResponse ( SamlMessage $ message ) { $ bindingFactory = new BindingFactory ( ) ; $ postBinding = $ bindingFactory -> create ( SamlConstants :: BINDING_SAML2_HTTP_POST ) ; $ messageContext = new MessageContext ( ) ; $ messageContext -> setMessage ( $ message ) ; $ httpResponse = $ postBinding -> send ( $ messageContext ) ; return new HtmlResponse ( $ httpResponse -> getContent ( ) ) ; }
Returns the HtmlResponse with the form of PostBinding as content

@param SamlMessage $message

@return HtmlResponse
Returns the HtmlResponse with the form of PostBinding as content