Gateway Class
This server handles requests made through the gateway and returns JSON data.
Located in the namespace Canteen\Server.
Item Index
Methods
Methods
handle
(
Object
-
uriRequest
The main server handler
Parameters:
-
uriRequest
StringThe entire URI being requested
Returns:
Object:
The JSON object
internalHandle
(
Mixed
private
-
uriRequest
The internal JSON handle request
Parameters:
-
uriRequest
StringThe URI request being made
Returns:
Mixed:
The result of the service call
register
(
-
uri
-
call
-
[privilege=Privilege::ANONYMOUS]
Create a new gateway
Parameters:
-
uri
StringThe path to the call
-
call
CallableThe callback for the uri request
-
[privilege=Privilege::ANONYMOUS]
Int optionalThe minimum privilege needed to call