Ntb\RestAPI\SerializerFactory::create
Returns a new instance of a serializer depending on the given type.
Signature
public function create([string
$mimeType = 'application/json'] )
Parameters
$mimeType
— string- the serializer type; Default: application/json
Returns
- IRestSerializer
- an instance of a serializer