Skip to content

Commit

Permalink
[README][Usage Section] Add further details + Fix syntax error with q…
Browse files Browse the repository at this point in the history
…uote
  • Loading branch information
pH-7 committed Sep 3, 2018
1 parent 2f7a566 commit c0ca38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ $container->register(
$httpRequest = $container->get('example.symfony.httprequest');

// Use it
$request = $httpRequest->request;
$request = $httpRequest->request; // $_POST body params
if ($request->get('get_var')) {
echo '"get var" exists';
echo '$_POST["get var"] exists';
} else {
echo 'The "get_var" hasen't been requested';
echo '"get_var" has not been requested';
}
```

Expand Down

0 comments on commit c0ca38f

Please sign in to comment.