DefaultFormatter.php
42 throw new ConfigurationException("Configuration section 'Formats' does not contain a format definition with name: ".$name);
58 throw new ConfigurationException("Configuration section 'Formats' does not contain a format definition for: ".$mimeType);
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:18
Default Formatter implementation.
Definition: DefaultFormatter.php:23
getRequest()
Get the Request instance belonging to the response.
getFormatFromMimeType($mimeType)
Definition: DefaultFormatter.php:48
ConfigurationException signals an exception in the configuration.
Definition: ConfigurationException.php:18
Formatter is the single entry point for request/response formatting.
Definition: Formatter.php:23
deserialize(Request $request)
Definition: DefaultFormatter.php:66
getCacheLifetime()
Get the lifetime of a cached response.
serialize(Response $response)
Definition: DefaultFormatter.php:80
getCacheDate()
Get the caching date, if the response is cached.
getFormat($name)
Definition: DefaultFormatter.php:38