summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-06-17 11:55:14 +0200
committerGitHub <noreply@github.com>2020-06-17 11:55:14 +0200
commit3539bd1751a71488cc78a5f6de1b437da5afad82 (patch)
treefb56f273266a63b4094005d8e2a97af98600763a
parent6328053105d7c0d6d3487560effc5179f2f58a46 (diff)
parentc76fa60571788ec8ab12f23269f5e16f2769061c (diff)
downloadnextcloud-server-3539bd1751a71488cc78a5f6de1b437da5afad82.tar.gz
nextcloud-server-3539bd1751a71488cc78a5f6de1b437da5afad82.zip
Merge pull request #21434 from nextcloud/bugfix/noid/dont-break-with-GenericEventWrapper
Don't break event listeners with the GenericEventWrapper
-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;