* judges menu removed
* awardees reactored into awards, judges are now included on a per year basis * lots of minor style adjustments to follow the design guideline
This commit is contained in:
@@ -21,7 +21,7 @@ class AwardeeManager
|
||||
* @param int $year
|
||||
* @return Awardee[]
|
||||
*/
|
||||
public function getJudgesByYear(int $year): ?array
|
||||
public function getAwardeesByYear(int $year): ?array
|
||||
{
|
||||
return $this->entityManager->getRepository(Awardee::class)->findBy([
|
||||
'year' => $year,
|
||||
@@ -32,7 +32,7 @@ class AwardeeManager
|
||||
* @param string $slug
|
||||
* @return Awardee|null
|
||||
*/
|
||||
public function getJudgeFromSlug(string $slug): ?Awardee
|
||||
public function getAwardeeFromSlug(string $slug): ?Awardee
|
||||
{
|
||||
/** @var Awardee $awardee */
|
||||
$awardee = $this->entityManager->getRepository(Awardee::class)->findOneBy([
|
||||
|
||||
@@ -118,4 +118,14 @@ class JudgeManager
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $year
|
||||
* @return array
|
||||
* @todo implement real filter by year
|
||||
*/
|
||||
public function getJudgesByYear(int $year)
|
||||
{
|
||||
return $this->getJudges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user