* 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:
Dávid Danyi
2018-05-08 18:10:38 +02:00
parent 4aeaae2520
commit b93616ab34
18 changed files with 121 additions and 45 deletions

View File

@@ -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([

View File

@@ -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();
}
}