rename implementation 09-wip directory

This commit is contained in:
lubiana 2022-05-21 00:54:36 +02:00 committed by Andre Lubian
parent 5dc8ad38dd
commit 26aa4b1502
18 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<?php declare(strict_types=1);
$response = new \Laminas\Diactoros\Response();
$clock = new \Lubian\NoFramework\Service\Time\SystemClock();
return [
\Lubian\NoFramework\Action\Hello::class => fn () => new \Lubian\NoFramework\Action\Hello($response, $clock),
\Lubian\NoFramework\Action\Other::class => fn () => new \Lubian\NoFramework\Action\Other($response),
];

View file

@ -0,0 +1,10 @@
<?php declare(strict_types=1);
use FastRoute\RouteCollector;
use Lubian\NoFramework\Action\Hello;
use Lubian\NoFramework\Action\Other;
return function (RouteCollector $r) {
$r->addRoute('GET', '/hello[/{name}]', Hello::class);
$r->addRoute('GET', '/other', Other::class);
};