Kdyby / Events

Events for Nette Framework
https://packagist.org/packages/kdyby/events
Other
58 stars 60 forks source link

Register subscribers with same arguments defined explicitly #93

Closed sneznaovca closed 8 years ago

sneznaovca commented 8 years ago

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,...)