2017 © Pedro Peláez
 

symfony-bundle exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

image

kick-in/exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

  • Friday, April 27, 2018
  • by bobvandevijver
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,197 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 23 % Grown

The README.md

ExceptionHandlerBundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem., (*1)

Upgrading

See the upgrade notes., (*2)

Installation

In order for this bundle to work, you are required to follow the following steps:, (*3)

  1. Install the bundle:
php composer.phar require kick-in/exception-handler-bundle
  1. Enable the bundle in your bundles.php (if not done automatically)
$bundles = [
  Kickin\ExceptionHandlerBundle\KickinExceptionHandlerBundle::class => ['all' => true],
];
  1. Choose the mail backend in the configuration. For example, for SwiftMailer:
kickin_exception_handler:
    mail_backend: 'swift' # One of "swift"; "swift_mailer"; "symfony"; "symfony_mailer"
  1. Implement your custom configuration service. This should implement either Configuration\SwiftMailerConfigurationInterface or
    Configuration\SymfonyMailerConfigurationInterface , depending on you mail backend choice., (*4)

    You can check a custom example implementation here., (*5)

  2. Your configuration will be autowired to the correct ExceptionHandler if you have set container.autowiring.strict_mode to false. Otherwise, (default in Symfony >=4.0), alias the Kickin\ExceptionHandlerBundle\Configuration\(Swift|Symfony)MailerConfigurationInterface service to your custom configuration class. For example:, (*6)

 Kickin\ExceptionHandlerBundle\Configuration\SymfonyMailerConfigurationInterface:
   alias: 'App\ExceptionHandler\ExceptionHandlerConfiguration'
  1. [SwiftMailer only] Create the exception_mailer SwiftMailer instance. For example:
swiftmailer:
    default_mailer: default
    mailers:
      default:
        transport: "%mailer_transport%"
      exception_mailer:
        transport: "%mailer_transport%"
        spool: { type: memory }

That should be it, happy exception mailing!, (*7)

Contributors

The original functionality has been created by WendoB, while BobV splitted the codebase into a separate bundle making it configurable for more users., (*8)

Problems

If you experience any problems, do not hesitate to create an issue (or PR if you're able to fix it)!, (*9)

The Versions

27/04 2018

dev-master

9999999-dev https://github.com/kick-in/exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

  Sources   Download

MIT

The Requires

 

by Bob van de Vijver
by Wendo Beuker

symfony exception handler

27/04 2018
27/12 2017
21/12 2017

1.0.2

1.0.2.0 https://github.com/kick-in/exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

  Sources   Download

MIT

The Requires

 

by Bob van de Vijver
by Wendo Beuker

symfony exception handler

02/11 2017

1.0.1

1.0.1.0 https://github.com/kick-in/exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

  Sources   Download

MIT

The Requires

 

by Bob van de Vijver
by Wendo Beuker

symfony exception handler

28/10 2017

1.0.0

1.0.0.0 https://github.com/kick-in/exception-handler-bundle

This bundles integrates an simple Exception Handler in your Symfony Application, which is capable of mailing the exact problem.

  Sources   Download

MIT

The Requires

 

by Bob van de Vijver
by Wendo Beuker

symfony exception handler