public static function Serializer::fromString in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-diactoros/src/Request/Serializer.php \Zend\Diactoros\Request\Serializer::fromString()
- 8.0 vendor/zendframework/zend-diactoros/src/Response/Serializer.php \Zend\Diactoros\Response\Serializer::fromString()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-diactoros/src/Response/Serializer.php \Zend\Diactoros\Response\Serializer::fromString()
Deserialize a response string to a response instance.
Parameters
string $message:
Return value
Throws
UnexpectedValueException when errors occur parsing the message.
File
- vendor/
zendframework/ zend-diactoros/ src/ Response/ Serializer.php, line 29
Class
Namespace
Zend\Diactoros\ResponseCode
public static function fromString($message) {
$stream = new Stream('php://temp', 'wb+');
$stream
->write($message);
return static::fromStream($stream);
}