8000 Feat upgrade php version (8.0) by eldadfux · Pull Request #713 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat upgrade php version (8.0) #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 140 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
be33726
Upgraded to php8
eldadfux Oct 27, 2020
e5c5cb0
Updated PDO PHP8 signature
eldadfux Oct 27, 2020
cb82657
Fix for PHP8 array_push
eldadfux Oct 27, 2020
745860a
Fixed reference
eldadfux Oct 27, 2020
38e52ea
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 27, 2020
146046a
Fixed mock params
eldadfux Oct 27, 2020
e8fb016
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 27, 2020
8bbdac2
Removed multiple docker-cli setups
eldadfux Oct 27, 2020
2996260
Added missing docs
eldadfux Oct 27, 2020
42d9a64
New line :)
eldadfux Oct 27, 2020
8d60a6a
Merge branch '0.7.x' into feat-upgrade-php-version
eldadfux Oct 27, 2020
eb9730b
Removed imagemagick dev
eldadfux Oct 28, 2020
47255f1
Merge branch 'feat-upgrade-php-version' of github.com:appwrite/appwri…
eldadfux Oct 28, 2020
608cf36
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 31, 2020
6cdeaac
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 31, 2020
de4ea2a
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 31, 2020
46ae720
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 31, 2020
0f812b1
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Oct 31, 2020
c9117ba
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Nov 7, 2020
b4037b9
Upgraded to RC3
eldadfux Nov 7, 2020
1a2c3c1
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Nov 21, 2020
dda4f29
Updated RC version
eldadfux Nov 21, 2020
4e83a98
Fixed tests
eldadfux Nov 21, 2020
02ef52c
Official release tag!
eldadfux Dec 1, 2020
a23f38c
Merge branch '0.7.x' into feat-upgrade-php-version
eldadfux Dec 12, 2020
3190b05
Upgraded Swoole version
eldadfux Dec 13, 2020
b99bb15
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Dec 17, 2020
29311cb
Remove $collection tests, attribute has been removed
eldadfux Dec 21, 2020
b4969f5
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 3, 2021
cbb0584
Synced with 0.7
eldadfux Jan 3, 2021
c412413
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 4, 2021
f975110
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 11, 2021
bc16ec9
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 14, 2021
e8c1d3a
Updated dependencies
eldadfux Jan 15, 2021
59f5a0e
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 15, 2021
4c1d541
Updated Influx SDK
eldadfux Jan 15, 2021
8373be6
Fix for swoole error
eldadfux Jan 15, 2021
8c7cedc
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Jan 30, 2021
70e0e5b
Upgraded Swoole
eldadfux Jan 30, 2021
a856d61
Updated PHP version
eldadfux Feb 5, 2021
c8b6a18
Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-upgrad…
eldadfux Feb 5, 2021
429ac10
Fixed JSON syntax
eldadfux Feb 6, 2021
45fff3e
Fixed test for php8
eldadfux Feb 6, 2021
a99133d
Updated Swoole version
eldadfux Feb 9, 2021
0237768
Merge branch '0.7.x' into feat-upgrade-php-version
eldadfux Feb 21, 2021
19e9582
Merge branch '0.7.x' into feat-upgrade-php-version
eldadfux Apr 5, 2021
8a93f40
deps: update dependencies
TorstenDittmann Apr 9, 2021
6b3ea91
deps: update php extensions
TorstenDittmann Apr 9, 2021
6dd2cc1
deps: set imagich to master version until php8 is officialy released
TorstenDittmann Apr 9, 2021
65c3e25
deps: fix missplaced dash
TorstenDittmann Apr 9, 2021
9dc2060
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 10, 2021
e021b87
fix: enable coroutine in functions worker
TorstenDittmann Apr 14, 2021
d97e167
tests: fix
TorstenDittmann Apr 14, 2021
942bd4d
fix: collection unit test
TorstenDittmann Apr 14, 2021
32587f9
tests: disable test
TorstenDittmann Apr 14, 2021
8f7c679
tests: enable tests again
TorstenDittmann Apr 14, 2021
74908f4
fix 8000 : disable co-routine hooks
TorstenDittmann Apr 14, 2021
b7833a8
fix: disable co-routine hooks
TorstenDittmann Apr 14, 2021
2f7f8ab
test: disabling coroutine in functions worker
TorstenDittmann Apr 16, 2021
3b989cf
fix: anonymous account tests
TorstenDittmann Apr 16, 2021
ca8920a
style: fix typo
TorstenDittmann Apr 16, 2021
e4c02dd
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 16, 2021
bd02df1
deps: update composer after merge
TorstenDittmann Apr 16, 2021
94d2ec5
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 19, 2021
d94ddf1
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 20, 2021
474f45c
tests: add timeout after executing fiunction for webhooks
TorstenDittmann Apr 20, 2021
fe819ee
tests: adjust schedule for functions
TorstenDittmann Apr 20, 2021
04fbb9b
tests: temporarily disable tests
TorstenDittmann Apr 20, 2021
f6c163d
Revert "tests: adjust schedule for functions"
TorstenDittmann Apr 20, 2021
26d8ef4
Revert "tests: add timeout after executing fiunction for webhooks"
TorstenDittmann Apr 20, 2021
6ed9788
tests: fix env skip for functions
TorstenDittmann Apr 20, 2021
36665e1
tests: use only latest env version
TorstenDittmann Apr 20, 2021
56c2c03
tests: remove cloud function env tests
TorstenDittmann Apr 20, 2021
25b03c9
feat: introduce appwrite/php-runtimes
TorstenDittmann Apr 21, 2021
0719806
fix: runtime whitelist
TorstenDittmann Apr 21, 2021
664201c
composer: remove unused system library
TorstenDittmann Apr 21, 2021
26a747d
feat: update new php-runtimes version
TorstenDittmann Apr 22, 2021
457aeb1
deps: update appwrite/php-runtimes to 0.1.*
TorstenDittmann Apr 22, 2021
7eb9891
chore: update composer dep to github and adust readme
TorstenDittmann Apr 22, 2021
fe5c004
revert: php-runtimes to composer dep
TorstenDittmann Apr 22, 2021
a82531d
deps: update appwrite/php-runtimes to 0.2.0
TorstenDittmann Apr 23, 2021
cb5c88a
fix: use new runtimes filter syntax
TorstenDittmann Apr 23, 2021
4629cc1
Merge pull request #1101 from TorstenDittmann/feat-upgrade-php-versio…
eldadfux Apr 23, 2021
5b2549c
deps: update swoole to 4.6.6
TorstenDittmann Apr 23, 2021
72f4f3a
tests: fix function execution
TorstenDittmann Apr 23, 2021
3d960a2
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 23, 2021
2c12396
chore: update composer
TorstenDittmann Apr 23, 2021
d2792b3
tests: fix functions schedule
TorstenDittmann Apr 23, 2021
ef57c35
tests: debug travis
TorstenDittmann Apr 23, 2021
204a3c9
tests: debug travis
TorstenDittmann Apr 23, 2021
62f7418
revert: travis phpunit exec
TorstenDittmann Apr 23, 2021
be9b49d
fix: runtimes logo path
TorstenDittmann Apr 26, 2021
061f389
fix: test flow
TorstenDittmann Apr 26, 2021
9b75f7b
tests: debug travis
TorstenDittmann Apr 26, 2021
72d820e
tests: debug travis
TorstenDittmann Apr 26, 2021
a17bfff
tests: debug travis
TorstenDittmann Apr 26, 2021
038a93b
tests: debug travis
TorstenDittmann Apr 26, 2021
1bda854
tests: debug travis
TorstenDittmann Apr 26, 2021
2d909a1 10000
tests: debug travis
TorstenDittmann Apr 26, 2021
8d0184a
tests: debug travis
TorstenDittmann Apr 26, 2021
e7fc22e
tests: debug travis
TorstenDittmann Apr 26, 2021
3a9b6e2
tests: debug travis
TorstenDittmann Apr 26, 2021
bc19c4c
tests: debug travis
TorstenDittmann Apr 26, 2021
0c98ee1
tests: debug travis
TorstenDittmann Apr 26, 2021
e3fa1e6
tests: debug travis
TorstenDittmann Apr 26, 2021
fa8f337
tests: debug travis
TorstenDittmann Apr 26, 2021
4b7ddb9
tests: debug travis
TorstenDittmann Apr 26, 2021
cc711df
tests: debug travis
TorstenDittmann Apr 26, 2021
18a927e
tests: debug travis
TorstenDittmann Apr 26, 2021
7084cc6
tests: debug travis
TorstenDittmann Apr 26, 2021
3838c93
tests: debug travis
TorstenDittmann Apr 26, 2021
140aa14
tests: debug travis
TorstenDittmann Apr 26, 2021
1367e57
tests: debug travis
TorstenDittmann Apr 26, 2021
4c511e4
deps: update composer
TorstenDittmann Apr 27, 2021
ee9a041
fix: breaking deps
TorstenDittmann Apr 27, 2021
a21bb8d
tests: reorder tests
TorstenDittmann Apr 27, 2021
c905803
chore: updated changelog
TorstenDittmann Apr 27, 2021
ab325bf
chore: upgrade MaxMind-DB-Reader to 1.10.1
TorstenDittmann Apr 27, 2021
1c8be29
tests: debug influxdb
TorstenDittmann Apr 27, 2021
b747c5c
tests: try different influxdb
TorstenDittmann Apr 27, 2021
d775b17
tests: fix typo
TorstenDittmann Apr 27, 2021
acbf643
tests: revert influxdb image
TorstenDittmann Apr 27, 2021
5ddcdf1
fix: influx db client
TorstenDittmann Apr 27, 2021
4689d0b
Revert "fix: influx db client"
TorstenDittmann Apr 27, 2021
1ce0536
tests: re-arrange order
TorstenDittmann Apr 27, 2021
c557e6c
tests: add sleep before project usage test
TorstenDittmann Apr 27, 2021
107bbf5
tests: debug travis
TorstenDittmann Apr 28, 2021
ef7c454
tests: adjust curl
TorstenDittmann Apr 28, 2021
0ddefb9
tests: adjust curl
TorstenDittmann Apr 28, 2021
c3bf481
tests: remove debug
TorstenDittmann Apr 28, 2021
86c7ff7
tests: remove docker-compose upgrade
TorstenDittmann Apr 28, 2021
c2a3d52
tests: revert debug changes
TorstenDittmann Apr 28, 2021
7ddf277
tests: only use php-8.0 for runtimes
TorstenDittmann Apr 28, 2021
ebd41c7
tests: add travis prepare script
TorstenDittmann Apr 28, 2021
cac9875
tests: clean up travis file
TorstenDittmann Apr 28, 2021
53526d4
chore: fix whitespace in travis file
TorstenDittmann Apr 28, 2021
24705f2
Merge branch '0.8.x' of https://github.com/appwrite/appwrite into fea…
TorstenDittmann Apr 29, 2021
6a19671
fix: adapt to review
TorstenDittmann Apr 29, 2021
d58cc60
fix: deprecation notice for
TorstenDittmann Apr 29, 2021
5e4b335
fix: cloud functions
TorstenDittmann Apr 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ before_install:
- docker buildx create --use
- chmod -R u+x ./.travis-ci
- export COMPOSE_INTERACTIVE_NO_CLI=1
# Only pass a single runtime for CI stability
- echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env

install:
- docker-compose up -d
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Enabled 501 errors (Not Implemented) from the error handler
- Added Python 3.9 as a new Cloud Functions runtime
- Added Deno 1.8 as a new Cloud Functions runtime (#989)
- Upgraded to PHP 8.0 (#713)
- ClamAV is now disabled by default to allow lower min requirments for Appwrite (#1064)
- Added a new env var named `_APP_LOCALE` that allow to change the default `en` locale value (#1056)
- Updated all the console bottom control to be consistent. Dropped the `+` icon (#1062)
Expand All @@ -30,9 +31,12 @@
## Breaking Changes (Read before upgrading!)

- Rename `deleteuser` to `delete` on Users Api
- Environment variable `_APP_FUNCTIONS_ENVS` renamed to `_APP_FUNCTIONS_RUNTIMES`
- Only logged in users can execute functions (for guests, use anonymous login)
- Only the user who has triggered the execution get access to the relevant execution logs
- Function execution env `APPWRITE_FUNCTION_EVENT_PAYLOAD` renamed to `APPWRITE_FUNCTION_EVENT_DATA`
- Function execution environment variable `APPWRITE_FUNCTION_EVENT_PAYLOAD` renamed to `APPWRITE_FUNCTION_EVENT_DATA`
- Function execution environment variable `APPWRITE_FUNCTION_ENV_NAME` renamed to `APPWRITE_FUNCTION_RUNTIME_NAME`
- Function execution environment variable `APPWRITE_FUNCTION_ENV_VERSION` renamed to `APPWRITE_FUNCTION_RUNTIME_VERSION`
- Introdcues rate limits for:
- Team invite (10 requests in every 60 minutes per IP address)

Expand Down
8 changes: 2 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,9 @@ Before running the command, make sure you have proper write permissions to the A
```bash
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x -t appwrite/appwrite:dev --push .
```
**Build Functions Envs**
**Build Functions Runtimes**

Build envs for all supported cloud functions (multicore builds)

```bash
bash ./docker/environments/build.sh
```
The Runtimes for all supported cloud functions (multicore builds) can be found at the [appwrite/php-runtimes](https://github 10000 .com/appwrite/php-runtimes) repository.

## Tests

Expand Down
61 changes: 40 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ RUN composer update --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist \
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`

FROM php:7.4-cli-alpine as step1
FROM php:8.0-cli-alpine as step1

ENV PHP_REDIS_VERSION=5.3.3 \
PHP_SWOOLE_VERSION=v4.5.8 \
PHP_MAXMINDDB_VERSION=v1.10.0 \
PHP_XDEBUG_VERSION=sdebug_2_9-beta
ENV PHP_REDIS_VERSION=5.3.4 \
PHP_SWOOLE_VERSION=v4.6.6 \
PHP_IMAGICK_VERSION=master \
PHP_YAML_VERSION=2.2.1 \
PHP_MAXMINDDB_VERSION=v1.10.1

RUN \
apk add --no-cache --virtual .deps \
Expand All @@ -29,38 +30,52 @@ RUN \
git \
zlib-dev \
brotli-dev \
yaml-dev \
imagemagick \
imagemagick-dev \
libmaxminddb-dev

RUN docker-php-ext-install sockets

RUN \
# Redis Extension
git clone https://github.com/phpredis/phpredis.git && \
git clone --depth 1 --branch $PHP_REDIS_VERSION https://github.com/phpredis/phpredis.git && \
cd phpredis && \
git checkout $PHP_REDIS_VERSION && \
phpize && \
./configure && \
make && make install && \
cd .. && \
## Swoole Extension
git clone https://github.com/swoole/swoole-src.git && \
git clone --depth 1 --branch $PHP_SWOOLE_VERSION https://github.com/swoole/swoole-src.git && \
cd swoole-src && \
git checkout $PHP_SWOOLE_VERSION && \
phpize && \
./configure --enable-sockets --enable-http2 && \
./configure --enable-http2 && \
make && make install && \
cd .. && \
## Imagick Extension
git clone --depth 1 --branch $PHP_IMAGICK_VERSION https://github.com/Imagick/imagick && \
cd imagick && \
phpize && \
./configure && \
make && make install && \
cd .. && \
## YAML Extension
git clone --depth 1 --branch $PHP_YAML_VERSION https://github.com/php/pecl-file_formats-yaml && \
cd pecl-file_formats-yaml && \
phpize && \
./configure && \
make && make install && \
cd .. && \
## Maxminddb extension
git clone https://github.com/maxmind/MaxMind-DB-Reader-php.git && \
git clone --depth 1 --branch $PHP_MAXMINDDB_VERSION https://github.com/maxmind/MaxMind-DB-Reader-php.git && \
cd MaxMind-DB-Reader-php && \
git checkout $PHP_MAXMINDDB_VERSION && \
cd ext && \
phpize && \
./configure && \
make && make install && \
cd ../..

FROM php:7.4-cli-alpine as final
FROM php:8.0-cli-alpine as final

LABEL maintainer="team@appwrite.io"

Expand Down Expand Up @@ -124,26 +139,26 @@ RUN \
curl-dev \
&& apk add --no-cache \
libstdc++ \
certbot \
brotli-dev \
yaml-dev \
imagemagick \
imagemagick-dev \
libmaxminddb-dev \
certbot \
docker-cli \
docker-compose \
libmaxminddb \
libmaxminddb-dev \
&& pecl install imagick yaml \
&& docker-php-ext-enable imagick yaml \
&& docker-php-ext-install sockets opcache pdo_mysql \
&& apk del .deps \
&& rm -rf /var/cache/apk/*

WORKDIR /usr/src/code

COPY --from=step0 /usr/local/src/vendor /usr/src/code/vendor
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20190902/swoole.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20190902/redis.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20190902/maxminddb.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/swoole.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/redis.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/imagick.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/yaml.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/maxminddb.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/

# Add Source Code
COPY ./app /usr/src/code/app
Expand Down Expand Up @@ -191,11 +206,15 @@ RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/
# Enable Extensions
RUN echo extension=swoole.so >> /usr/local/etc/php/conf.d/swoole.ini
RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini
RUN echo extension=imagick.so >> /usr/local/etc/php/conf.d/imagick.ini
RUN echo extension=yaml.so >> /usr/local/etc/php/conf.d/yaml.ini
RUN echo extension=maxminddb.so >> /usr/local/etc/php/conf.d/maxminddb.ini

RUN echo "opcache.preload_user=www-data" >> /usr/local/etc/php/conf.d/appwrite.ini
RUN echo "opcache.preload=/usr/src/code/app/preload.php" >> /usr/local/etc/php/conf.d/appwrite.ini
RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/appwrite.ini
RUN echo "opcache.jit_buffer_size=100M" >> /usr/local/etc/php/conf.d/appwrite.ini
RUN echo "opcache.jit=1235" >> /usr/local/etc/php/conf.d/appwrite.ini

EXPOSE 80

Expand Down
165 changes: 0 additions & 165 deletions app/config/environments.php

This file was deleted.

15 changes: 15 additions & 0 deletions app/config/runtimes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

use Utopia\App;
use Appwrite\Runtimes\Runtimes;

/**
* List of Appwrite Cloud Functions supported runtimes
*/
$runtimes = new Runtimes();

$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));

$runtimes = $runtimes->getAll(filter: $allowList);

return $runtimes;
10 changes: 9 additions & 1 deletion app/config/variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,16 @@
'question' => '',
],
[
'name' => '_APP_FUNCTIONS_ENVS',
'name' => '_APP_FUNCTIONS_RUNTIMES',
'description' => 'This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\n\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\n\nCurrently, supported environments are: ' . \implode(', ', \array_keys(Config::getParam('providers'))),
'introduction' => '0.8.0',
'default' => 'node-15.5,deno-1.8,php-8.0,python-3.9,ruby-3.0,dotnet-5.0',
'required' => false,
'question' => '',
],
[
'name' => '_APP_FUNCTIONS_ENVS',
'description' => 'Deprectated with 0.8.0, use \'_APP_FUNCTIONS_RUNTIMES\' instead!',
'introduction' => '0.7.0',
'default' => 'node-14.5,deno-1.8,php-7.4,python-3.9,ruby-3.0,dotnet-5.0',
'required' => false,
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
->label('sdk.response.model', Response::MODEL_FUNCTION)
->param('name', '', new Text(128), 'Function name. Max length: 128 chars.')
->param('execute', [], new ArrayList(new Text(64)), 'An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.')
->param('env', '', new WhiteList(array_keys(Config::getParam('environments')), true), 'Execution enviornment.')
->param('env', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Execution enviornment.')
->param('vars', [], new Assoc(), 'Key-value JSON object.', true)
->param('events', [], new ArrayList(new WhiteList(array_keys(Config::getParam('events')), true)), 'Events list.', true)
->param('schedule', '', new Cron(), 'Schedule CRON syntax.', true)
Expand Down
Loading
0