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

Commit 3ab58aa

Browse files
wizhippopspanja
authored andcommitted
Update BetterIbexaAdminUIRuntime.php
Correct service variable name
1 parent 411e97d commit 3ab58aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundle/Templating/Twig/BetterIbexaAdminUIRuntime.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
final class BetterIbexaAdminUIRuntime implements RuntimeExtensionInterface
1313
{
14-
private ContentService $filterService;
14+
private ContentService $contentService;
1515

16-
public function __construct(ContentService $filterService)
16+
public function __construct(ContentService $contentService)
1717
{
18-
$this->filterService = $filterService;
18+
$this->contentService = $contentService;
1919
}
2020

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

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

0 commit comments

Comments
 (0)