fix wrong namespace in for laminas request in http chapter
This commit is contained in:
parent
6818179857
commit
7ff078b16f
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue