add data from work folder

This commit is contained in:
lubiana 2022-03-29 20:35:06 +02:00
parent 1781a923b4
commit ca40fdd970
218 changed files with 16123 additions and 1233 deletions

View file

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Lubian\NoFramework\Action;
use Lubian\NoFramework\Service\Time\Now;
use Psr\Http\Message\ResponseInterface;
final class Hello
{
public function __invoke(
ResponseInterface $response,
Now $now,
string $name = 'Stranger',
): ResponseInterface {
$response = $response->withStatus(200);
$response->getBody()->write('Hello ' . $name . '!');
$nowString = $now->get()->format('H:i:s');
$response->getBody()->write(' The Time is ' . $nowString);
return $response;
}
}