PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.8.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.8.2
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / prefixed / symfony / error-handler / README.md
matomo / app / vendor / prefixed / symfony / error-handler Last commit date
Error 1 year ago ErrorEnhancer 1 year ago ErrorRenderer 1 year ago Exception 1 year ago Internal 2 years ago Resources 1 year ago BufferingLogger.php 1 year ago Debug.php 1 year ago DebugClassLoader.php 1 year ago ErrorHandler.php 1 year ago LICENSE 2 years ago README.md 2 years ago ThrowableUtils.php 2 years ago
README.md
45 lines
1 ErrorHandler Component
2 ======================
3
4 The ErrorHandler component provides tools to manage errors and ease debugging PHP code.
5
6 Getting Started
7 ---------------
8
9 ```
10 $ composer require symfony/error-handler
11 ```
12
13 ```php
14 use Symfony\Component\ErrorHandler\Debug;
15 use Symfony\Component\ErrorHandler\ErrorHandler;
16 use Symfony\Component\ErrorHandler\DebugClassLoader;
17
18 Debug::enable();
19
20 // or enable only one feature
21 //ErrorHandler::register();
22 //DebugClassLoader::enable();
23
24 // If you want a custom generic template when debug is not enabled
25 // HtmlErrorRenderer::setTemplate('/path/to/custom/error.html.php');
26
27 $data = ErrorHandler::call(static function () use ($filename, $datetimeFormat) {
28 // if any code executed inside this anonymous function fails, a PHP exception
29 // will be thrown, even if the code uses the '@' PHP silence operator
30 $data = json_decode(file_get_contents($filename), true);
31 $data['read_at'] = date($datetimeFormat);
32 file_put_contents($filename, json_encode($data));
33
34 return $data;
35 });
36 ```
37
38 Resources
39 ---------
40
41 * [](https://symfony.com/doc/current/contributing/index.htmlContributing](https://symfony.com/doc/current/contributing/index.html](https://symfony.com/doc/current/contributing/index.html)
42 * [](https://github.com/symfony/symfony/issuesReport issues](https://github.com/symfony/symfony/issues](https://github.com/symfony/symfony/issues) and
43 [](https://github.com/symfony/symfony/pullssend Pull Requests](https://github.com/symfony/symfony/pulls](https://github.com/symfony/symfony/pulls)
44 in the [](https://github.com/symfony/symfonymain Symfony repository](https://github.com/symfony/symfony](https://github.com/symfony/symfony)
45