Vinelab / bowler

RabbitMQ wrapper for Laravel
MIT License
45 stars 9 forks source link

Apply contextual binding for exception handler #53

Closed adiachenko closed 5 years ago

adiachenko commented 5 years ago

Without contextual binding we'll always resolve either Laravel's base exception handler (under new implementation) or implementation of BowlerExceptionHandler contract (under previous implementation).

As discussed previously, the intended result of error handling improvements is to have app exception handler that optionally implements BowlerExceptionHandler contract. If the consumer of the library chose not to implement the contract, the default error reporting behavior kicks in.