+ */
+ public static function getAllExtensionNames(): array
+ {
+ $result = [];
+ foreach (self::SUPPORTED_VERSIONS as $version => $class) {
+ $result[$version] = array_map(
+ static fn(PhpExtension $e) => $e->getName(),
+ (new $class())->getOptional(),
+ );
+ }
+ return $result;
+ }
+
/**
* Returns an instance to the appropriate class for extensions for a given php version.
*/
diff --git a/templates/generator.html.twig b/templates/generator.html.twig
index fe7c6189..a0c01bc3 100644
--- a/templates/generator.html.twig
+++ b/templates/generator.html.twig
@@ -48,10 +48,8 @@
- {{ form_row(attribute(form.phpOptions, 'phpExtensions85')) }}
- {{ form_row(attribute(form.phpOptions, 'phpExtensions84')) }}
- {{ form_row(attribute(form.phpOptions, 'phpExtensions83')) }}
- {{ form_row(attribute(form.phpOptions, 'phpExtensions82')) }}
+ {{ form_row(attribute(form.phpOptions, 'phpExtensions')) }}
+
diff --git a/templates/layout.html.twig b/templates/layout.html.twig
index e1edd905..5032cb72 100644
--- a/templates/layout.html.twig
+++ b/templates/layout.html.twig
@@ -18,7 +18,6 @@
-
@@ -46,10 +45,8 @@
-
-
+
-