\Amfphp_Core_HttpRequestGatewayFactory

A gateway factory's job is to create a gateway. There can be many gateway factories, but as such the only one for now is this one, which creates a gateway assuming that the data to be processed is in an http request and thus available through the usual php globals

Summary

Methods
Properties
Constants
createGateway()
No public properties found
No constants found
getRawPostData()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createGateway()

createGateway(\Amfphp_Core_Config $config) : \Amfphp_Core_Gateway

create the gateway.

content type is recovered by looking at the GET parameter contentType. If it isn't set, it looks in the content headers.

Parameters

\Amfphp_Core_Config $config

optional. If null, the gateway will use the default

Returns

\Amfphp_Core_Gateway

getRawPostData()

getRawPostData() : \<String>

there seems to be some confusion in the php doc as to where best to get the raw post data from.

try $GLOBALS['HTTP_RAW_POST_DATA'] and php://input

Returns

\

it's a binary stream, but there seems to be no better type than String for this.