Action: overloading of response
Created by: agorlov
Create such possibility:
if handle()
returns string it automaticaly treats as Resposne body
class ActIndex implements Action
{
public function handle(Response $resp): Response
{
//
return "Hello, World 2!<br><a href="/login">login</a>";
return $resp->withBody(
"Hello, World 2!<br>" .
'<a href="/login">login</a>'
);
}
}