Skip to content

Commit

Permalink
Fixed readme typos and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Oct 18, 2014
1 parent 600ac75 commit 1304eb5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@ had a method like ``preDispatch()`` then you can use it easily!

#### Events

Listening to events is also possible with API Framework. If you want to use this functionality, you will
have to complete the following steps:
Listening to events is also possible with API Framework. You have to complete the following steps
if you want to use this functionality:

- Change the main class of the framework to ``EventApiFramework`` in your code and the configuration class
- Change the framework class in your code to ``EventApiFramework`` and the configuration class
to ``EventConfig``.

- Subscribe for the events in the configuration similar to the way you define the routes.
- Subscribe to the events in the configuration similar to the way you define the routes.

- You can customize which event dispatching library to use by calling
``EventApiFramework::setEventDispatcher()``. Of course this step is totally optional.
Expand All @@ -377,7 +377,7 @@ to ``EventConfig``.
your composer.json:

```bash
$ composer require symfony/event-dispatcher
$ composer require symfony/event-dispatcher
```

Here is an example:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"require-dev":{
"jms/serializer": "~0.16",
"nikic/fast-route": "~0.2@dev",
"nikic/fast-route": "dev-master",
"symfony/event-dispatcher": "~2.5",
"symfony/http-foundation": "~2.5",
"symfony/yaml": "~2.5"
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Response/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function setMime($mime)
*/
public function isRedirected()
{
return ($this->getStatusCode() === 304 || $this->getStatusCode() == 307) && $this->location != null;
return ($this->getStatusCode() === 304 || $this->getStatusCode() === 307) && $this->location !== null;
}

/**
Expand Down

0 comments on commit 1304eb5

Please sign in to comment.