Closed
Description
It will make code more simple when we are sending json response.
At the moment:
$messages = $robot->getMessages();
foreach ($messages as $message) {
$response[] = $message->getText();
}
$request->setJsonContent($response);
I would like to:
$messages = $robot->getMessages();
$request->setJsonContent($messages);
P.S. Phalcon has two different MessageInterfaces. Maybe should are be merged into one?