mirror of
https://github.com/appwrite/appwrite
synced 2026-04-27 00:17:34 +00:00
12 lines
285 B
PHP
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;
|