Files
rspade_system/vendor/doctrine/event-manager/UPGRADE.md
root f6fac6c4bc Fix bin/publish: copy docs.dist from project root
Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 02:08:33 +00:00

16 lines
612 B
Markdown
Executable File

# Upgrade to 2.0
## Made the `$event` parameter of `EventManager::getListeners()` mandatory
When calling `EventManager::getListeners()` you need to specify the event that
you want to fetch the listeners for. Call `getAllListeners()` instead if you
want to access the listeners of all events.
# Upgrade to 1.2
## Deprecated calling `EventManager::getListeners()` without an event name
When calling `EventManager::getListeners()` without an event name, all
listeners were returned, keyed by event name. A new method `getAllListeners()`
has been added to provide this functionality. It should be used instead.