diff options
-rwxr-xr-x | bin/package2composer.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/package2composer.sh b/bin/package2composer.sh index 66d77f623..aa9dffb50 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -73,6 +73,12 @@ if ($devs = $package->developer) { } } +if ($package->dependencies->required->extension) { + foreach ($package->dependencies->required->extension as $ext) { + $data['require']['ext-' . strval($ext->name)] = '*'; + } +} + // remove empty values $data = array_filter($data); |