|
7 | 7 | use App\Entity\Team; |
8 | 8 | use App\Entity\TeamAffiliation; |
9 | 9 | use App\Entity\TeamCategory; |
| 10 | +use App\Service\ConfigurationService; |
10 | 11 | use App\Service\DOMJudgeService; |
11 | 12 | use Doctrine\ORM\EntityManagerInterface; |
12 | 13 | use Doctrine\ORM\EntityRepository; |
|
18 | 19 |
|
19 | 20 | class SubmissionsFilterType extends AbstractType |
20 | 21 | { |
21 | | - public function __construct(protected readonly DOMJudgeService $dj, protected readonly EntityManagerInterface $em) |
22 | | - { |
23 | | - } |
| 22 | + public function __construct( |
| 23 | + protected readonly ConfigurationService $config, |
| 24 | + protected readonly DOMJudgeService $dj, |
| 25 | + protected readonly EntityManagerInterface $em, |
| 26 | + ) {} |
24 | 27 |
|
25 | 28 | public function buildForm(FormBuilderInterface $builder, array $options): void |
26 | 29 | { |
@@ -115,7 +118,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void |
115 | 118 | "attr" => ["data-filter-field" => "team-id"], |
116 | 119 | ]); |
117 | 120 |
|
118 | | - $verdicts = array_keys($this->dj->getVerdicts(['final', 'error', 'in_progress'])); |
| 121 | + $verdicts = array_keys($this->config->getVerdicts(['final', 'error', 'in_progress'])); |
119 | 122 | $builder->add("result", ChoiceType::class, [ |
120 | 123 | "label" => "Filter on result(s)", |
121 | 124 | "multiple" => true, |
|
0 commit comments