2.2.1: Fix Catch Exception when resolving FirebaseManager (#73)
atymic
released this
18 Mar 22:18
My Case is the Following:
- I'm working with laravel v5.8 (a Legacy project and can't upgrade it now).
- I installed this package with version v2.2
- The Package using `laravel-firebase` with version v2.4 which support laravel v5.8
My Problem:
- Because `laravel-firebase` v2.4 installed this version didn't bind `firebase.manager` in laravel service container
- This means it should fallback and enter the catch block and use `firebase.messaging`.
- But the problem is the catch block trying catch `BindingResolutionException` but in my case, the exception was `ReflectionException`.
- I don't know what is the problem maybe because I'm working with the old laravel version but I hope you find this solution helpful.