Skip to content

Commit

Permalink
Fixes digedag#33 using INDEXER_TYPE-constants
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Sep 25, 2023
1 parent 578cc7d commit da02f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Service/Statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
use System25\T3sports\Search\SearchCoachStats;
use System25\T3sports\Search\SearchPlayerStats;
use System25\T3sports\Search\SearchRefereeStats;
use System25\T3sports\StatsIndexer\CoachStatsInterface;
use System25\T3sports\StatsIndexer\PlayerStatsInterface;
use System25\T3sports\StatsIndexer\RefereeStatsInterface;
use System25\T3sports\Utility\ServiceRegistry;
use System25\T3sports\Utility\StatsDataBag;
use System25\T3sports\Utility\StatsMatchNoteProvider;
Expand Down Expand Up @@ -456,7 +458,7 @@ public function lookupPlayerServices()
*/
public function lookupCoachServices()
{
return $this->lookupStatsServices('t3sportsCoachStats');
return $this->lookupStatsServices(CoachStatsInterface::INDEXER_TYPE);
}

/**
Expand All @@ -466,7 +468,7 @@ public function lookupCoachServices()
*/
public function lookupRefereeServices()
{
return $this->lookupStatsServices('t3sportsRefereeStats');
return $this->lookupStatsServices(RefereeStatsInterface::INDEXER_TYPE);
}

/**
Expand Down

0 comments on commit da02f3b

Please sign in to comment.