Skip to content

Commit

Permalink
NGSTACK-842 rename getHandler from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
petarjakopec committed Jun 25, 2024
1 parent 82511ae commit 45da079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundle/Configuration/ScheduledVisibilityConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getAllowedContentTypes(): array
return $this->allowedContentTypes;
}

public function getHandler(): string
public function getHandlerIdentifier(): string
{
return $this->handler;
}
Expand Down
2 changes: 1 addition & 1 deletion bundle/Service/ScheduledVisibilityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45da079

Please sign in to comment.