Kdyby/Events

Register subscribers with same arguments defined explicitly

Closed this issue · 0 comments

If are registered more services with explicit defined argument is return error Service 'events.MD5' has already been added.
Because json_decode https://github.com/Kdyby/Events/blob/master/src/Kdyby/Events/DI/EventsExtension.php#L97 processes only arguments and hash is same.

Example:

subscribers:
    - Message(@service,...)
    - Notification(@service,...)