no-framework-tutorial/implementation/09/config/container.php

10 lines
371 B
PHP
Raw Normal View History

2022-05-19 21:39:08 +00:00
<?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),
];