2021-04-21 23:02:54 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Utopia\App;
|
|
|
|
use Appwrite\Runtimes\Runtimes;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of Appwrite Cloud Functions supported runtimes
|
|
|
|
*/
|
2021-04-22 21:26:10 +12:00
|
|
|
$runtimes = new Runtimes();
|
2021-04-21 23:02:54 +12:00
|
|
|
|
2021-04-30 03:08:59 +12:00
|
|
|
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
|
2021-04-21 23:02:54 +12:00
|
|
|
|
2021-05-19 07:05:44 +12:00
|
|
|
$runtimes = $runtimes->getAll(true, $allowList);
|
2021-04-21 23:02:54 +12:00
|
|
|
|
|
|
|
return $runtimes;
|