From 7ff078b16fa8d144ed46813d150b432976f4cd21 Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 19 May 2022 23:35:51 +0200 Subject: [PATCH] fix wrong namespace in for laminas request in http chapter --- 05-http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05-http.md b/05-http.md index 6166214..61077a6 100644 --- a/05-http.md +++ b/05-http.md @@ -30,7 +30,7 @@ enter Now you can add the following below your error handler code in your `Bootstrap.php` (and don't forget to remove the exception): ```php -$request = Laminas\Diactoros\ServerRequestFactory::fromGlobals(); +$request = \Laminas\Diactoros\ServerRequestFactory::fromGlobals(); $response = new \Laminas\Diactoros\Response; $response->getBody()->write('Hello World! '); $response->getBody()->write('The Uri is: ' . $request->getUri()->getPath());