Skip to content

Commit

Permalink
Merge pull request #299 from Exagone313/5.x-docs-usage-typos
Browse files Browse the repository at this point in the history
Fix a few typos in usage documentation page
  • Loading branch information
philipobenito authored Jul 9, 2021
2 parents b357c40 + f910d8a commit a47c797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/5.x/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ composer require league/container

## Hello, World!

Now that we have all the packages we need, we can a simple Hello, World! application in one file.
Now that we have all the packages we need, we can make a simple Hello, World! application in one file.

~~~php
<?php declare(strict_types=1);
Expand Down Expand Up @@ -84,7 +84,7 @@ $request = Laminas\Diactoros\ServerRequestFactory::fromGlobals(
$_SERVER, $_GET, $_POST, $_COOKIE, $_FILES
);

$responseFactory = new \Laminas\Diactoros\ResponseFactory();
$responseFactory = new Laminas\Diactoros\ResponseFactory();

$strategy = new League\Route\Strategy\JsonStrategy($responseFactory);
$router = (new League\Route\Router)->setStrategy($strategy);
Expand All @@ -103,7 +103,7 @@ $response = $router->dispatch($request);
(new Laminas\HttpHandlerRunner\Emitter\SapiEmitter)->emit($response);
~~~

The code above will convert your returned array in to a JSON response.
The code above will convert your returned array into a JSON response.

~~~json
{
Expand Down

0 comments on commit a47c797

Please sign in to comment.