explain implementation of ad-hoc depencency container

This commit is contained in:
lubiana 2022-05-21 00:21:15 +02:00
parent c7f79beda2
commit 7a1ce1cad1
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
3 changed files with 197 additions and 4 deletions

View file

@ -2,6 +2,7 @@
namespace Lubian\NoFramework\Action;
use Lubian\NoFramework\Service\Time\Clock;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
@ -9,7 +10,10 @@ use Psr\Http\Server\RequestHandlerInterface;
final class Hello implements RequestHandlerInterface
{
public function __construct(private readonly ResponseInterface $response, private readonly Clock $clock)
public function __construct(
private readonly ResponseInterface $response,
private readonly Clock $clock
)
{
}