Recommend this page to a friend! |
Classes of Mohamed Aymen Ben Slimane | Exceptionizer Bundle | README.md | Download |
|
Downloadexceptionizer-bundlePlay with Exceptions :D This bundle help to get a low coupling between exception class object in your code InstallationExceptionizer uses Composer, please checkout the composer website for more information. The simple following command will install
Then, you can enable it in your kernel:
UsageNow you can use Exceptionizer service to throw Exceptions:
OR define your Exception in your config.yml file like this :
and pass the config key to the service:
Events and listener:ExceptionizerBundle provide two events:
<b>exceptionizer.pre_throw</b> : before throw Exception <b>exceptionizer.post_catch</b>: (will be documented later when we speak about the Exception Catcher) Now you can create Listeners to do a specific job when an exception will be thrown ;) and to learn more about the EventDispatcher Component in symfony2 pleaze read the documentation LicenseThis bundle is available under the MIT license. |