From 80c69dd2c906cf380442c241e259604b792e3ed9 Mon Sep 17 00:00:00 2001 From: Chris Hallgren Date: Mon, 28 Feb 2022 17:57:27 -0600 Subject: [PATCH] Correcting Middleware use documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3c5538..aec0acb 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ with the Whoops handler: When using new Application.php and Middleware approach, you also need to adjust that: ```php // Replace ErrorHandlerMiddleware with - ->add(new \CakephpWhoops\Error\Middleware\WhoopsHandlerMiddleware()) + ->add(new \CakephpWhoops\Error\Middleware\WhoopsHandlerMiddleware(Configure::read('Error'))) ``` ### Debug Mode