-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
14 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,12 @@ | |
|
||
class RobotsPageLoader | ||
{ | ||
/** | ||
* @param EntityRepository<SalesChannelDomainCollection> $salesChannelDomainRepository | ||
*/ | ||
public function __construct( | ||
Check failure on line 23 in src/Page/Robots/RobotsPageLoader.php
|
||
private readonly EventDispatcherInterface $eventDispatcher, | ||
private readonly EntityRepository $domainRepository, | ||
private readonly EntityRepository $salesChannelDomainRepository, | ||
Check failure on line 25 in src/Page/Robots/RobotsPageLoader.php
|
||
private readonly SystemConfigService $systemConfigService | ||
) { | ||
} | ||
|
@@ -55,7 +58,7 @@ private function getDomains(string $hostname, Context $context): SalesChannelDom | |
$criteria = new Criteria(); | ||
$criteria->addFilter(new ContainsFilter('url', $hostname)); | ||
|
||
$domains = $this->domainRepository->search($criteria, $context)->getEntities(); | ||
$domains = $this->salesChannelDomainRepository->search($criteria, $context)->getEntities(); | ||
assert($domains instanceof SalesChannelDomainCollection); | ||
|
||
return $domains; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters