Skip to content

Commit

Permalink
BUGFIX: Fix the check for RedirectStorageInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Apr 19, 2024
1 parent 14f68a8 commit 9cf5e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Media/Classes/Domain/Service/AssetService.php
Original file line number Diff line number Diff line change
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 9cf5e27

Please sign in to comment.