readd implementation folder

This commit is contained in:
lubiana 2022-05-19 23:39:08 +02:00 committed by Andre Lubian
parent 7ff078b16f
commit a4f171b98c
80 changed files with 8471 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<?php declare(strict_types=1);
namespace Lubian\NoFramework\Action;
use Laminas\Diactoros\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
final class Other implements RequestHandlerInterface
{
public function handle(ServerRequestInterface $request): ResponseInterface
{
$response = (new Response)->withStatus(200);
$response->getBody()
->write('This works too!');
return $response;
}
}