Closed ibrunotome closed 5 years ago
Hi @ibrunotome ,
Thank you for opening this issue.
Could you please tell me which version of Laravel and TransactionalDispatcher are you using?
I see that __construct()
of TransactionalDispatcher is already receiving an instance of TransactionalDispatcher. I suspect you're registering the TransactionalDispatcher twice.
Hi @fntneves, as you can see below, I'm using swoole with hhxsv5/laravel-s (for async and speed purposes). And the problem starts after the version v3.4.1 of his package.
I explain the problem to him too (https://github.com/hhxsv5/laravel-s/issues/129#issuecomment-476914604).
Also, I'm using the last version of your package (1.8.0)
I am following the discussion on https://github.com/hhxsv5/laravel-s/issues/129
Hopefully, we get this working.
I've switched back to swooletw/laravel-swoole and your package is working normally. Closing the issue.
Sometimes I'm getting this error:
[27-Mar-2019 00:36:04 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Neves\Events\TransactionalDispatcher::__construct() must be an instance of Illuminate\Events\Dispatcher, instance of Neves\Events\TransactionalDispatcher given, called in /app/vendor/fntneves/laravel-transactional-events/src/Neves/Events/EventServiceProvider.php on line 29 and defined in /app/vendor/fntneves/laravel-transactional-events/src/Neves/Events/TransactionalDispatcher.php:69
If I remove the
EventDispatcher
type on constructor, it works, so I print a log to test:And got this:
Can we do something about this? The most quickly solution is remove the
EventDispatcher
type from constructor, but I don't know if is the best solution.