iiirxs/exception-handler-bundle

A Symfony bundle that provides custom exception handling out of the box

v1.0.0 2020-03-11 16:00 UTC

This package is auto-updated.

Last update: 2024-04-12 18:02:29 UTC


README

This bundle provides custom exception handling for ajax requests. By default it provides validation exception class, but you can create any custom exception to be handled, by implementing the IIIRxs\ExceptionHandlerBundle\Exception\ExceptionInterface.

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

$ composer require iiirxs/exception-handler-bundle

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require iiirxs/exception-handler-bundle

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    IIIRxs\ExceptionHandlerBundle\IIIRxsExceptionHandlerBundle::class => ['all' => true],
];