add data from work folder

This commit is contained in:
lubiana 2022-03-29 20:35:06 +02:00
parent 528ba365b4
commit 7052803761
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
218 changed files with 16123 additions and 1233 deletions

View file

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
$builder = new \DI\ContainerBuilder();
$builder->addDefinitions([
\Psr\Http\Message\ResponseInterface::class => \DI\create(\Laminas\Diactoros\Response::class),
\Psr\Http\Message\ServerRequestInterface::class => fn () => \Laminas\Diactoros\ServerRequestFactory::fromGlobals(),
]);
return $builder->build();

View file

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
return function (\FastRoute\RouteCollector $r): void {
$r->addRoute('GET', '/hello[/{name}]', [\Lubian\NoFramework\Action\Hello::class, 'handle']);
$r->addRoute('GET', '/another-route', [\Lubian\NoFramework\Action\Another::class, 'handle']);
};