rename implementation 09-wip directory
This commit is contained in:
parent
5dc8ad38dd
commit
26aa4b1502
18 changed files with 0 additions and 0 deletions
9
implementation/09/config/container.php
Normal file
9
implementation/09/config/container.php
Normal 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),
|
||||
];
|
10
implementation/09/config/routes.php
Normal file
10
implementation/09/config/routes.php
Normal 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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue