Skip to content

Commit

Permalink
Correcting Middleware use documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
challgren authored Feb 28, 2022
1 parent 43d3e2b commit 80c69dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80c69dd

Please sign in to comment.