Closed carbontwelve closed 5 years ago
Heya, this works for me on my local lumen install with the version you mentioned above.
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.
Thanks!
Description:
When using the
dispatch($job)
helper function (source) I get the following error: PHP Fatal error: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Target [Illuminate\Contracts\Bus\Dispatcher] is not instantiable. in ... I have included the releveant call stack below:Steps To Reproduce:
Use the
dispatch($job)
helper function and have PHPUnit 8 run the code via unit test. This may actually fail outside of PHPUnit but I haven't tested that yet. What seems to work is replacing it withapp('Illuminate\Contracts\Bus\Dispatcher')->dispatch($job)
which I obtained from the Lumen controller helper trait here.