The classifier represents application exception listeners.
In order for the exception to be converted into an HTTP response, specify the error code known to the classifier in the code
field of the exception.
This package is currently in the active development.
- PHP 7.2 or greater
- Symfony 4.4
-
Require the bundle and a PSR 7/17 implementation with Composer:
composer require itamit/classifier-error-bundle
-
Enable the bundle in
config/bundles.php
by adding it to the array:Itamit\ClassifierErrorBundle\ClassifierErrorBundle::class => ['all' => true]
-
Create a class that implements an interface
Itamit\ClassifierErrorBundle\Provider\ErrorProviderInterface
-
Register the created class as a service with a tag
classifier_error.error_provider