1
0
Fork 0
mirror of synced 2024-09-15 00:48:25 +12:00
appwrite/tests/resources/functions/php-large/index.php
2023-08-16 08:19:42 +02:00

13 lines
605 B
PHP

<?php
return function ($context) {
return $context->res->json([
'APPWRITE_FUNCTION_ID' => \getenv('APPWRITE_FUNCTION_ID'),
'APPWRITE_FUNCTION_NAME' => \getenv('APPWRITE_FUNCTION_NAME'),
'APPWRITE_FUNCTION_DEPLOYMENT' => \getenv('APPWRITE_FUNCTION_DEPLOYMENT'),
'APPWRITE_FUNCTION_TRIGGER' => $context->req->headers['x-appwrite-trigger'] ?? '',
'APPWRITE_FUNCTION_RUNTIME_NAME' => \getenv('APPWRITE_FUNCTION_RUNTIME_NAME'),
'APPWRITE_FUNCTION_RUNTIME_VERSION' => \getenv('APPWRITE_FUNCTION_RUNTIME_VERSION'),
'UNICODE_TEST' => "êä"
]);
};