appwrite/app/config/template-runtimes.php
2025-11-12 09:32:12 +05:45

12 lines
285 B
PHP

<?php
use Utopia\Config\Config;
$runtimes = Config::getParam('runtimes');
$mappedRuntimes = \array_reduce($runtimes, function ($acc, $runtime) {
$acc[strtoupper($runtime['key'])][] = $runtime['key'] . '-' . $runtime['version'];
return $acc;
}, []);
return $mappedRuntimes;