# Installation
# Require package (Composer)
The recommended way to install this package is to use Composer (opens new window):
$ composer require eonx-com/easy-error-handler
# Symfony
# Register bundle
If you're using Symfony Flex (opens new window), then the bundle is automatically registered. If not, you can register the bundle yourself:
// config/bundles.php
return [
// Other bundles ...
EonX\EasyErrorHandler\Bridge\Symfony\EasyErrorHandlerSymfonyBundle::class => ['all' => true],
];
# Laravel/Lumen
# Register service provider
In a Lumen application you must explicitly tell the application to register the package's service provider as follows:
# bootstrap/app.php
$app = new Laravel\Lumen\Application(\dirname(__DIR__));
// Other actions...
$app->register(\EonX\EasyErrorHandler\Bridge\Laravel\Provider\EasyErrorHandlerServiceProvider::class);
# Add configuration
In a Lumen application you must explicitly tell the application to add the package's config as following:
# bootstrap/app.php
$app = new Laravel\Lumen\Application(\dirname(__DIR__));
// Other actions...
$app->configure('easy-error-handler');