Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Update BetterIbexaAdminUIRuntime.php
Browse files Browse the repository at this point in the history
Correct service variable name
  • Loading branch information
wizhippo authored and pspanja committed Jun 14, 2023
1 parent 411e97d commit 3ab58aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bundle/Templating/Twig/BetterIbexaAdminUIRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

final class BetterIbexaAdminUIRuntime implements RuntimeExtensionInterface
{
private ContentService $filterService;
private ContentService $contentService;

public function __construct(ContentService $filterService)
public function __construct(ContentService $contentService)
{
$this->filterService = $filterService;
$this->contentService = $contentService;
}

public function countContentByContentType(string $contentTypeIdentifier): int
Expand All @@ -24,6 +24,6 @@ public function countContentByContentType(string $contentTypeIdentifier): int
$query->withCriterion(new Criterion\ContentTypeIdentifier($contentTypeIdentifier));
$query->withLimit(0);

return $this->filterService->find($query)->getTotalCount() ?? 0;
return $this->contentService->find($query)->getTotalCount() ?? 0;
}
}

0 comments on commit 3ab58aa

Please sign in to comment.