Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2a10f34

Browse files
committed
add empty closure
1 parent 2d9a33a commit 2a10f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/cookbook/using-middleware-in-dispatch-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Module
3434
$eventManager->attach('dispatch', function ($e) use ($services) {
3535
$request = Psr7ServerRequest::fromZend($e->getRequest());
3636
$response = Psr7Response::fromZend($e->getResponse());
37-
$result = ($services->get(AuthorizationMiddleware::class))($request, $response);
37+
$result = ($services->get(AuthorizationMiddleware::class))($request, $response, function() {});
3838
}, 2);
3939
}
4040
}

0 commit comments

Comments
 (0)