Skip to content

Commit 6fa2fea

Browse files
committed
text linting
1 parent 2592463 commit 6fa2fea

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Logging Error Handler for DotKernel
2222
`composer require dotkernel/dot-errorhandler:^3.3`
2323

2424
- Add the config provider
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-
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+
3030
- Configure the error handler as shown below
3131

3232
configs/autoload/error-handling.global.php
@@ -51,7 +51,7 @@ return [
5151
];
5252
```
5353

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:
5555
- for logging use `LogErrorHandler`
5656
- for the simple Zend Expressive handler user `ErrorHandler`
5757

docs/book/v3/configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ return [
2929
```
3030

3131
When declaring the `ErrorHandlerInterface` alias you can choose whether to log or not:
32+
3233
- for the simple Zend Expressive handler user `ErrorHandler`
3334
- for logging use `LogErrorHandler`
3435

@@ -43,6 +44,7 @@ package's `ConfigProvider`. If you need a custom ErrorHandler it must have a fac
4344
declared in the config, as in the example.
4445

4546
Example:
47+
4648
```php
4749
<?php
4850

@@ -68,4 +70,5 @@ return [
6870
]
6971
];
7072
```
73+
7174
Config examples can be found in this project's `config` directory.

0 commit comments

Comments
 (0)