Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jun 16, 2015
1 parent 9883c9f commit 7c18ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ $harmony->addMiddleware(
The first argument of the middleware's constructor is the ID of the middleware that must be unique, the second argument
is a callable which gets the reference of the full framework as its only parameter.

The single most important thing any middleware can do is to call ``$harmony-next()`` to invoke the next middleware
The single most important thing any middleware can do is to call ``$harmony->next()`` to invoke the next middleware
when its function was accomplished. Not calling this method means interrupting the framework's operation! That's why
we only invoke ``$harmony->next`` in this example when authentication was successful.

Expand Down Expand Up @@ -274,7 +274,7 @@ $harmony->addMiddleware(new AuthenticationMiddleware("123"));
As you can see, the constructor receives the API Key, while the ``execute()`` method is responsible for performing the
authentication.

Again: the single most important thing any middleware can do is to call ``$harmony-next()`` to invoke the next middleware
Again: the single most important thing any middleware can do is to call ``$harmony->next()`` to invoke the next middleware
when its function was accomplished. Not calling this method means interrupting the framework's operation! That's why
we only invoke ``$harmony->next`` in this example when authentication was successful.

Expand Down

0 comments on commit 7c18ec9

Please sign in to comment.