ALLOWED_TYPES
ALLOWED_TYPES
This is a plugin used to generate data to be transported by the HTTP response.
$application : \Gishiki\Core\Application|null
__construct(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, \Gishiki\Core\Application|null $app = null)
Serializer constructor: setup the plugin importing serializers
Warning: you should never attempt to use another construction in your plugin, unless it calls parent::__construct()
\Psr\Http\Message\RequestInterface | $request | the HTTP request |
\Psr\Http\Message\ResponseInterface | $response | the HTTP response |
\Gishiki\Core\Application|null | $app | the current application instance |
setResponseSerialized(\Gishiki\Algorithms\Collections\SerializableCollection $data)
Serialize given data using the best suitable serialization format.
Write the result to the response body and place the format into the Content-Type HTTP header.
\Gishiki\Algorithms\Collections\SerializableCollection | $data | the data to be serialized |