Skip to content

Commit 7c18ec9

Browse files
committed
Fixed typos
1 parent 9883c9f commit 7c18ec9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ $harmony->addMiddleware(
219219
The first argument of the middleware's constructor is the ID of the middleware that must be unique, the second argument
220220
is a callable which gets the reference of the full framework as its only parameter.
221221

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

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

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

0 commit comments

Comments
 (0)