diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-31 14:15:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-06-02 08:08:24 +0200 |
commit | 6d076c1ee9f0cd2de7357df801c27b08a70b89a1 (patch) | |
tree | 6b73bdbfe84e19e6b1a655c24a5ee87e566b6531 /lib/private/EventDispatcher | |
parent | 5591da0b33f4f4ce50f289318c49595e116ba4a3 (diff) | |
download | nextcloud-server-6d076c1ee9f0cd2de7357df801c27b08a70b89a1.tar.gz nextcloud-server-6d076c1ee9f0cd2de7357df801c27b08a70b89a1.zip |
fix(dispatcher): Migrate to OCP event dispatcher before symfony/event-dispatcher upgrade
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/EventDispatcher')
-rw-r--r-- | lib/private/EventDispatcher/SymfonyAdapter.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php index 7354d58d4e0..139f444ce44 100644 --- a/lib/private/EventDispatcher/SymfonyAdapter.php +++ b/lib/private/EventDispatcher/SymfonyAdapter.php @@ -113,8 +113,7 @@ class SymfonyAdapter implements EventDispatcherInterface { // Event with no payload (object) need special handling if ($newEvent === null) { - $this->eventDispatcher->getSymfonyDispatcher()->dispatch($eventName); - return new Event(); + $newEvent = new Event(); } // Flip the argument order for Symfony to prevent a trigger_error |