aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-25 11:29:33 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-27 09:57:51 +0200
commit4f7de8ed60f528c38af9e4ba988015e9e9abc5dc (patch)
tree655ee4404a11750438b4b5f8b0c8b1023148c3fb /lib/private/Preview
parent582e655c011eaea0cd33d8827a90904d1250cb9b (diff)
downloadnextcloud-server-4f7de8ed60f528c38af9e4ba988015e9e9abc5dc.tar.gz
nextcloud-server-4f7de8ed60f528c38af9e4ba988015e9e9abc5dc.zip
fix!: Remove legacy event dispatching Symfony's GenericEvent
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Generator.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index c9949c82a97..4e4571f0857 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -44,8 +44,6 @@ use OCP\IStreamImage;
use OCP\Preview\BeforePreviewFetchedEvent;
use OCP\Preview\IProviderV2;
use OCP\Preview\IVersionedPreviewFile;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-use Symfony\Component\EventDispatcher\GenericEvent;
class Generator {
public const SEMAPHORE_ID_ALL = 0x0a11;
@@ -59,8 +57,6 @@ class Generator {
private $appData;
/** @var GeneratorHelper */
private $helper;
- /** @var EventDispatcherInterface */
- private $legacyEventDispatcher;
/** @var IEventDispatcher */
private $eventDispatcher;
@@ -69,14 +65,12 @@ class Generator {
IPreview $previewManager,
IAppData $appData,
GeneratorHelper $helper,
- EventDispatcherInterface $legacyEventDispatcher,
IEventDispatcher $eventDispatcher
) {
$this->config = $config;
$this->previewManager = $previewManager;
$this->appData = $appData;
$this->helper = $helper;
- $this->legacyEventDispatcher = $legacyEventDispatcher;
$this->eventDispatcher = $eventDispatcher;
}
@@ -104,10 +98,6 @@ class Generator {
'mode' => $mode,
];
- $this->legacyEventDispatcher->dispatch(
- IPreview::EVENT,
- new GenericEvent($file, $specification)
- );
$this->eventDispatcher->dispatchTyped(new BeforePreviewFetchedEvent(
$file,
$width,