Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few typos in usage documentation page #299

Merged
merged 2 commits into from
Jul 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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