You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- in `config/config.php` add `\Dot\ErrorHandler\ConfigProvider`
26
-
- in `config/pipeline.php` add `\Dot\ErrorHandler\ErrorHandlerInterface::class`
27
-
+ the interface is used as an alias to keep all error handling related configurations in one file
28
-
+**IMPORTANT NOTE** there should be no other error handlers after this one (only before) because the other error handler will catch the error causing dot-errorhandler not to catch any error, we recommend using just one error handler unless you have an error-specific handler
29
-
25
+
- in `config/config.php` add `\Dot\ErrorHandler\ConfigProvider`
26
+
- in `config/pipeline.php` add `\Dot\ErrorHandler\ErrorHandlerInterface::class`
27
+
- the interface is used as an alias to keep all error handling related configurations in one file
28
+
-**IMPORTANT NOTE** there should be no other error handlers after this one (only before) because the other error handler will catch the error causing dot-errorhandler not to catch any error, we recommend using just one error handler unless you have an error-specific handler
29
+
30
30
- Configure the error handler as shown below
31
31
32
32
configs/autoload/error-handling.global.php
@@ -51,7 +51,7 @@ return [
51
51
];
52
52
```
53
53
54
-
When declaring the `ErrorHandlerInterface` alias you can choose whether to log or not:
54
+
When declaring the `ErrorHandlerInterface` alias you can choose whether to log or not:
55
55
- for logging use `LogErrorHandler`
56
56
- for the simple Zend Expressive handler user `ErrorHandler`
0 commit comments