From 9cf5e2746fe6f895622ffd09af14f67575643889 Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Fri, 19 Apr 2024 10:54:58 +0200 Subject: [PATCH] BUGFIX: Fix the check for RedirectStorageInterface --- Neos.Media/Classes/Domain/Service/AssetService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neos.Media/Classes/Domain/Service/AssetService.php b/Neos.Media/Classes/Domain/Service/AssetService.php index 1a8035fdb5f..946f19a3ad7 100644 --- a/Neos.Media/Classes/Domain/Service/AssetService.php +++ b/Neos.Media/Classes/Domain/Service/AssetService.php @@ -339,7 +339,7 @@ public function replaceAssetResource(AssetInterface $asset, PersistentResource $ } } - if ($redirectHandlerEnabled && class_exists(RedirectStorageInterface::class)) { + if ($redirectHandlerEnabled && interface_exists(RedirectStorageInterface::class)) { /** @var RedirectStorageInterface $redirectStorage */ $redirectStorage = $this->objectManager->get(RedirectStorageInterface::class); foreach ($uriMapping as $originalUri => $newUri) {