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

Commit 07f6a03

Browse files
committed
Remove nested middleware array
Thanks, @harikt!
1 parent 0ada590 commit 07f6a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/cookbook/setting-locale-depending-routing-parameter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ return [
143143
'middleware' => [
144144
Zend\Expressive\Container\ApplicationFactory::ROUTING_MIDDLEWARE,
145145
Helper\UrlHelperMiddleware::class,
146-
[ 'middleware' => LocalizationMiddleware::class ],
146+
LocalizationMiddleware::class,
147147
Zend\Expressive\Container\ApplicationFactory::DISPATCH_MIDDLEWARE,
148148
],
149149
'priority' => 1,

0 commit comments

Comments
 (0)