1
0
Fork 0
mirror of synced 2024-08-31 09:51:33 +12:00
appwrite/tests/resources/functions/php-fn/index.php
Bradley Schofield bca326dc8d Improvements to executor
- Executor now loads runtimes from php-runtimes package
- Executor now handles timeouts correctly
- Executor can now shutdown and remove containers before shutting down itself preventing a `docker-compose stop` failure due to active network endpoints.
- Fixed a issue with JWT's not working
- Improved general executor reliability
- Tests now pass!
2021-09-06 01:37:20 +01:00

17 lines
No EOL
982 B
PHP

<?php
return function ($request, $response) {
$response->json([
'APPWRITE_FUNCTION_ID' => $request->env['APPWRITE_FUNCTION_ID'],
'APPWRITE_FUNCTION_NAME' => $request->env['APPWRITE_FUNCTION_NAME'],
'APPWRITE_FUNCTION_TAG' => $request->env['APPWRITE_FUNCTION_TAG'],
'APPWRITE_FUNCTION_TRIGGER' => $request->env['APPWRITE_FUNCTION_TRIGGER'],
'APPWRITE_FUNCTION_RUNTIME_NAME' => $request->env['APPWRITE_FUNCTION_RUNTIME_NAME'],
'APPWRITE_FUNCTION_RUNTIME_VERSION' => $request->env['APPWRITE_FUNCTION_RUNTIME_VERSION'],
'APPWRITE_FUNCTION_EVENT' => $request->env['APPWRITE_FUNCTION_EVENT'],
'APPWRITE_FUNCTION_EVENT_DATA' => $request->env['APPWRITE_FUNCTION_EVENT_DATA'],
'APPWRITE_FUNCTION_DATA' => $request->env['APPWRITE_FUNCTION_DATA'],
'APPWRITE_FUNCTION_USER_ID' => $request->env['APPWRITE_FUNCTION_USER_ID'],
'APPWRITE_FUNCTION_JWT' => $request->env['APPWRITE_FUNCTION_JWT'],
]);
};