@@ -21,7 +21,7 @@ The package provides advanced error handling. The features are:
2121- Production and debug modes.
2222- Debug mode displays details, stacktrace, has dark and light themes and handy buttons to search for error without typing.
2323- Takes PHP settings into account.
24- - Handles out of memory errors, fatals, warnings, notices and exceptions.
24+ - Handles out of memory errors, fatals, warnings, notices and exceptions.
2525- Can use any PSR-3 compatible logger for error logging.
2626- Detects response format based on mime type of the request.
2727- Supports responding with HTML, plain text, JSON, XML and headers out of the box.
@@ -195,9 +195,6 @@ $response = $exceptionResponder->process($request, $handler);
195195In the application middleware stack ` Yiisoft\ErrorHandler\Middleware\ExceptionResponder ` must be placed before
196196` Yiisoft\ErrorHandler\Middleware\ErrorCatcher ` .
197197
198- For use in the [ Yii framework] ( https://www.yiiframework.com/ ) ,
199- see [ Yii guide to handling errors] ( https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md ) .
200-
201198## Events
202199
203200- When ` ErrorCatcher ` catches an error it dispatches ` \Yiisoft\ErrorHandler\Event\ApplicationError ` event.
@@ -221,7 +218,6 @@ Code blocks in solution markdown support language syntax highlight:
221218
222219For example:
223220
224- ````
225221``` html
226222<html >
227223<body >
@@ -230,45 +226,21 @@ For example:
230226</body >
231227</html >
232228```
233- ````
234-
235- ## Testing
236-
237- ### Unit testing
238-
239- The package is tested with [ PHPUnit] ( https://phpunit.de/ ) . To run tests:
240-
241- ``` shell
242- ./vendor/bin/phpunit
243- ```
244229
245- ### Mutation testing
230+ ## Documentation
246231
247- The package tests are checked with [ Infection] ( https://infection.github.io/ ) mutation framework with
248- [ Infection Static Analysis Plugin] ( https://github.com/Roave/infection-static-analysis-plugin ) . To run it:
249-
250- ``` shell
251- ./vendor/bin/roave-infection-static-analysis-plugin
252- ```
253-
254- ### Static analysis
255-
256- The code is statically analyzed with [ Psalm] ( https://psalm.dev/ ) . To run static analysis:
257-
258- ``` shell
259- ./vendor/bin/psalm
260- ```
232+ - [ Yii guide to handling errors (English)] ( https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md )
233+ - [ Guia Yii para lidar com erros (Português - Brasil)] ( https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md )
234+ - [ Internals] ( docs/internals.md )
261235
262236## Credits
263237
264238The Yii Error Handler use code of [ Highlight.js] ( https://highlightjs.org/ ) by Ivan Sagalaev and other contributors.
265239
266- ## License
240+ ## Support
267241
268- The Yii Error Handler is free software. It is released under the terms of the BSD License.
269- Please see [ ` LICENSE ` ] ( ./LICENSE.md ) for more information.
270-
271- Maintained by [ Yii Software] ( https://www.yiiframework.com/ ) .
242+ If you need help or have a question, the [ Yii Forum] ( https://forum.yiiframework.com/c/yii-3-0/63 ) is a good place for that.
243+ You may also check out other [ Yii Community Resources] ( https://www.yiiframework.com/community ) .
272244
273245## Support the project
274246
@@ -281,3 +253,10 @@ Maintained by [Yii Software](https://www.yiiframework.com/).
281253[ ![ Telegram] ( https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram )] ( https://t.me/yii3en )
282254[ ![ Facebook] ( https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff )] ( https://www.facebook.com/groups/yiitalk )
283255[ ![ Slack] ( https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack )] ( https://yiiframework.com/go/slack )
256+
257+ ## License
258+
259+ The Yii Error Handler is free software. It is released under the terms of the BSD License.
260+ Please see [ ` LICENSE ` ] ( ./LICENSE.md ) for more information.
261+
262+ Maintained by [ Yii Software] ( https://www.yiiframework.com/ ) .
0 commit comments