mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Allow setting priority on listeners/subscribers #5052
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wilt on GitHub (Mar 11, 2016).
Originally assigned to: @Ocramius on GitHub.
I am not sure since it is hard to find any documentation on this. But it seems like both the Listeners and the Subscribers don't allow to set a priority. This would be a very useful addition.
If it is somehow possible to do this it would be good to add an example to the documentation.
@Ocramius commented on GitHub (Mar 11, 2016):
It is not supported by our event system. If you need to support this, wrap your event handlers in a "priority-aware" event handler.
If you need this sort of functionality, consider providing a more extensive feature request in https://github.com/doctrine/common/issues
@Wilt commented on GitHub (Mar 11, 2016):
OK thanks!