contributte / event-dispatcher

:boom: Best events support (symfony/event-dispatcher) to Nette Framework (@nette)
https://contributte.org/packages/contributte/event-dispatcher.html
MIT License
29 stars 8 forks source link

Bugfix: implement priorities properly and add test #9

Closed jiripudil closed 6 years ago

jiripudil commented 6 years ago

I've got this error when trying to use a prioritized subscriber:

Event listener Nette\DI\ServiceDefinition does not have callable method onEvent

I dug into the code and found out that subscribers with priorities were not registered correctly with lazy: true. This hopefully fixes the problem.

f3l1x commented 6 years ago

Thanks @jiripudil