1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

feat: update new php-runtimes version

This commit is contained in:
Torsten Dittmann 2021-04-22 11:26:10 +02:00
parent 664201c112
commit 26a747d29e
2 changed files with 4 additions and 4 deletions

View file

@ -6,11 +6,11 @@ use Appwrite\Runtimes\Runtimes;
/**
* List of Appwrite Cloud Functions supported runtimes
*/
$runtimes = Runtimes::get();
$runtimes = new Runtimes();
$allowList = empty(App::getEnv('_APP_FUNCTIONS_ENVS')) ? false : \explode(',', App::getEnv('_APP_FUNCTIONS_ENVS'));
$runtimes = array_filter($runtimes, function ($key) use ($allowList) {
$runtimes = array_filter($runtimes->getAll(), function ($key) use ($allowList) {
$isAllowed = $allowList && in_array($key, $allowList);
return $allowList ? $isAllowed : true;

4
composer.lock generated
View file

@ -119,7 +119,7 @@
"source": {
"type": "git",
"url": "https://github.com/torstendittmann/php-runtimes",
"reference": "da5e566738bb2803b574d7bedaea0b4448a3b317"
"reference": "e7adbf06f8aed062213a33eda247510e4cf0809a"
},
"require": {
"php": ">=8.0",
@ -155,7 +155,7 @@
"php",
"runtimes"
],
"time": "2021-04-21T12:20:31+00:00"
"time": "2021-04-22T08:03:37+00:00"
},
{
"name": "chillerlan/php-qrcode",