mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
13 lines
285 B
PHP
13 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;
|