Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luispabon committed Nov 22, 2024
1 parent 18a1cd2 commit 6eb0c5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Form/Generator/PhpType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use App\PHPDocker\PhpExtension\Php81AvailableExtensions;
use App\PHPDocker\PhpExtension\Php82AvailableExtensions;
use App\PHPDocker\PhpExtension\Php83AvailableExtensions;
use App\PHPDocker\PhpExtension\Php84AvailableExtensions;
use App\PHPDocker\PhpExtension\PhpExtension;
use App\PHPDocker\Project\ServiceOptions\Php;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
Expand Down Expand Up @@ -96,6 +97,13 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'label' => 'Extensions (PHP 8.3)',
'required' => false,
'constraints' => $phpOptionsConstraints,
])
->add('phpExtensions84', ChoiceType::class, [
'choices' => $this->getExtensionChoices((new Php84AvailableExtensions())->getOptional()),
'multiple' => true,
'label' => 'Extensions (PHP 8.4)',
'required' => false,
'constraints' => $phpOptionsConstraints,
]);
}

Expand Down
2 changes: 2 additions & 0 deletions templates/generator.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
</div>

<div class="col col-lg-6 col-md-6">
{{ form_row(attribute(form.phpOptions, 'phpExtensions84')) }}

{{ form_row(attribute(form.phpOptions, 'phpExtensions83')) }}

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

0 comments on commit 6eb0c5e

Please sign in to comment.