summaryrefslogtreecommitdiffstats
path: root/lib/private/EventDispatcher
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-16 19:30:36 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-16 19:30:36 +0200
commitc76fa60571788ec8ab12f23269f5e16f2769061c (patch)
tree86e6746f24cdc0d73eccf8d153054fff1370405a /lib/private/EventDispatcher
parent5e52c110bb149f35ec46472a4834a5f9a25c4892 (diff)
downloadnextcloud-server-c76fa60571788ec8ab12f23269f5e16f2769061c.tar.gz
nextcloud-server-c76fa60571788ec8ab12f23269f5e16f2769061c.zip
Don't break event listeners with the GenericEventWrapper
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/EventDispatcher')
-rw-r--r--lib/private/EventDispatcher/SymfonyAdapter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php
index 10e953be843..f2b74a5ca63 100644
--- a/lib/private/EventDispatcher/SymfonyAdapter.php
+++ b/lib/private/EventDispatcher/SymfonyAdapter.php
@@ -63,7 +63,7 @@ class SymfonyAdapter implements EventDispatcherInterface {
if ($event instanceof Event) {
$this->eventDispatcher->dispatch($eventName, $event);
} else {
- if ($event instanceof GenericEvent) {
+ if ($event instanceof GenericEvent && get_class($event) === GenericEvent::class) {
$newEvent = new GenericEventWrapper($this->logger, $eventName, $event);
} else {
$newEvent = $event;