Index of /lpage-fluessiggas/vendor/symfony/error-handler

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]BufferingLogger.php 2023-04-17 22:04 2.0K 
[TXT]CHANGELOG.md 2023-04-17 22:04 149  
[   ]Debug.php 2023-04-17 22:04 1.1K 
[   ]DebugClassLoader.php 2023-04-17 22:04 42K 
[DIR]Error/ 2023-04-17 22:04 -  
[   ]ErrorHandler.php 2023-04-17 22:04 28K 
[   ]composer.json 2023-04-17 22:04 932  
[DIR]ErrorEnhancer/ 2023-04-17 22:04 -  
[DIR]ErrorRenderer/ 2023-04-17 22:04 -  
[DIR]Exception/ 2023-04-17 22:04 -  
[TXT]LICENSE 2023-04-17 22:04 1.0K 
[DIR]Resources/ 2023-04-17 22:04 -  
[   ]ThrowableUtils.php 2023-04-17 22:04 895  

ErrorHandler Component
======================

The ErrorHandler component provides tools to manage errors and ease debugging PHP code.

Getting Started
---------------

```
$ composer require symfony/error-handler
```

```php
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\ErrorHandler\ErrorHandler;
use Symfony\Component\ErrorHandler\DebugClassLoader;

Debug::enable();

// or enable only one feature
//ErrorHandler::register();
//DebugClassLoader::enable();

$data = ErrorHandler::call(static function () use ($filename, $datetimeFormat) {
    // if any code executed inside this anonymous function fails, a PHP exception
    // will be thrown, even if the code uses the '@' PHP silence operator
    $data = json_decode(file_get_contents($filename), true);
    $data['read_at'] = date($datetimeFormat);
    file_put_contents($filename, json_encode($data));

    return $data;
});
```

Resources
---------

 * [Contributing](https://symfony.com/doc/current/contributing/index.html)
 * [Report issues](https://github.com/symfony/symfony/issues) and
   [send Pull Requests](https://github.com/symfony/symfony/pulls)
   in the [main Symfony repository](https://github.com/symfony/symfony)