Skip to content

Commit 3406c6b

Browse files
committed
Corrected event name
1 parent f48a6cd commit 3406c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: data/posts/2017/03/2017-03-03-building-the-new-phalcon-website-middleware-part-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Middleware needs to be attached to specific events in our events manager. These
1212

1313
* `before`: This attaches the middleware to the event that fires before the handler has been executed.
1414
* `after`: This attaches the middleware to the event that fires after the handler has been executed.
15-
* `final`: This attaches the middleware to the event that fires after the response has been sent to the caller.
15+
* `finish`: This attaches the middleware to the event that fires after the response has been sent to the caller.
1616

1717
You can attach as many middleware classes in each of these events. They will be processed in a sequential manner, i.e. the first one registered gets processed first, then the second one etc.
1818

0 commit comments

Comments
 (0)