Skip to content

Commit

Permalink
Merge pull request #5001 from neos/bugfix-media-redirect
Browse files Browse the repository at this point in the history
BUGFIX: Fix the check for RedirectStorageInterface
  • Loading branch information
dlubitz committed Apr 19, 2024
2 parents 14f68a8 + 9cf5e27 commit 89aa2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Media/Classes/Domain/Service/AssetService.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 89aa2b4

Please sign in to comment.