Skip to content

Commit 6eb0c5e

Browse files
committed
Fixes
1 parent 18a1cd2 commit 6eb0c5e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Form/Generator/PhpType.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use App\PHPDocker\PhpExtension\Php81AvailableExtensions;
2323
use App\PHPDocker\PhpExtension\Php82AvailableExtensions;
2424
use App\PHPDocker\PhpExtension\Php83AvailableExtensions;
25+
use App\PHPDocker\PhpExtension\Php84AvailableExtensions;
2526
use App\PHPDocker\PhpExtension\PhpExtension;
2627
use App\PHPDocker\Project\ServiceOptions\Php;
2728
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
@@ -96,6 +97,13 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
9697
'label' => 'Extensions (PHP 8.3)',
9798
'required' => false,
9899
'constraints' => $phpOptionsConstraints,
100+
])
101+
->add('phpExtensions84', ChoiceType::class, [
102+
'choices' => $this->getExtensionChoices((new Php84AvailableExtensions())->getOptional()),
103+
'multiple' => true,
104+
'label' => 'Extensions (PHP 8.4)',
105+
'required' => false,
106+
'constraints' => $phpOptionsConstraints,
99107
]);
100108
}
101109

templates/generator.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
</div>
5959

6060
<div class="col col-lg-6 col-md-6">
61+
{{ form_row(attribute(form.phpOptions, 'phpExtensions84')) }}
62+
6163
{{ form_row(attribute(form.phpOptions, 'phpExtensions83')) }}
6264

6365
{{ form_row(attribute(form.phpOptions, 'phpExtensions82')) }}

0 commit comments

Comments
 (0)