diff --git a/bundle/Configuration/ScheduledVisibilityConfiguration.php b/bundle/Configuration/ScheduledVisibilityConfiguration.php index 3aa82e4..8a72d50 100644 --- a/bundle/Configuration/ScheduledVisibilityConfiguration.php +++ b/bundle/Configuration/ScheduledVisibilityConfiguration.php @@ -30,7 +30,7 @@ public function getAllowedContentTypes(): array return $this->allowedContentTypes; } - public function getHandler(): string + public function getHandlerIdentifier(): string { return $this->handler; } diff --git a/bundle/Service/ScheduledVisibilityService.php b/bundle/Service/ScheduledVisibilityService.php index 19a136e..f2dafe7 100644 --- a/bundle/Service/ScheduledVisibilityService.php +++ b/bundle/Service/ScheduledVisibilityService.php @@ -32,7 +32,7 @@ public function updateVisibilityIfNeeded(Content $content, ?string $handlerIdent throw new InvalidStateException($content); } - $handler = $this->registry->get($handlerIdentifier ?? $this->configurationService->getHandler()); + $handler = $this->registry->get($handlerIdentifier ?? $this->configurationService->getHandlerIdentifier()); if ($this->shouldBeHidden($content) && !$handler->isHidden($content)) { $handler->hide($content);