1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +12:00
appwrite/app/config/runtimes.php

17 lines
343 B
PHP
Raw Normal View History

2021-04-21 23:02:54 +12:00
<?php
/**
* List of Appwrite Cloud Functions supported runtimes
*/
2022-05-24 02:54:50 +12:00
2022-05-31 05:41:25 +12:00
use Utopia\App;
use Appwrite\Runtimes\Runtimes;
2022-05-17 01:05:58 +12:00
$runtimes = new Runtimes('v1');
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
2022-05-24 02:54:50 +12:00
return $runtimes;