From 1209db298923f174b37af6a7e73d1642da36a127 Mon Sep 17 00:00:00 2001 From: James Ma Date: Wed, 4 Dec 2024 10:48:33 -0800 Subject: [PATCH 1/5] Update README.md (#207) * Update README.md * Update README.md fixed typo --------- Co-authored-by: Andras Kerekes --- README.md | 95 +++---------------------------------------------------- 1 file changed, 4 insertions(+), 91 deletions(-) diff --git a/README.md b/README.md index 9da692d4..6c8c1a89 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ The Functions Framework lets you write lightweight functions that run in many different environments, including: * Your local development machine -* [Cloud Run and Cloud Run on GKE](https://cloud.google.com/run/) * [Knative](https://github.com/knative/)-based environments The framework allows you to go from: @@ -110,102 +109,16 @@ curl localhost:8080 # Output: Hello World from a PHP HTTP function! ``` -## Run your function on Google Cloud Functions +## Run your function on Google Cloud Run Functions **NOTE**: For an extensive list of samples, see the [PHP functions samples][functions-samples] and the [official how-to guides][functions-how-to]. -Follow the steps below to deploy to Google Cloud Functions. More information -on function deployment is available in the -[GCF documentation](https://cloud.google.com/functions/docs/deploying). +Follow the [Cloud Run function quickstart](https://cloud.google.com/run/docs/quickstarts/functions/deploy-functions-gcloud#php) for PHP to learn how to deploy a function to Cloud Run. -To run your function on Cloud Functions, first you must have the [gcloud SDK][gcloud] installed and [authenticated][gcloud-auth]. +## Run your function as a container in Cloud Run -Make sure your source file (which defines your function) is called -`index.php`. The Functions Framework lets you choose a function source file, -but Cloud Functions currently uses the default of `index.php`. - -Decide _which_ function in the source file to invoke, that is, the name that you -used when writing the function. This is called the **target**. - -Choose a Cloud Functions **name** for your function. The **name** identifies -this function deployment (e.g. in the cloud console) and is also part of the -function's default URL. (Note: the **name** and the **target** do not have to -be the same value.) - -Then, from the directory containing your function source, issue the gcloud command to deploy: - -```sh -gcloud functions deploy $YOUR_FUNCTION_NAME \ - --runtime=php74 \ - --entry-point=$YOUR_FUNCTION_TARGET \ - --trigger-http -``` - -The `--entry-point` flag can be omitted if the **target** has the same value -as the **name**. - -If your function handles events rather than HTTP requests, you'll need to -replace `--trigger-http` with a different trigger. For details, see the -[reference documentation](https://cloud.google.com/sdk/gcloud/reference/functions/deploy) -for `gcloud functions deploy`. - -To update your deployment, just redeploy using the same function **name**. -Configuration flags are not required. - -## Run your function in Cloud Run - -To run your function in Cloud Run, first you must have the [gcloud SDK][gcloud] installed and [authenticated][gcloud-auth]. - -Additionally, you need to have a Google Cloud project ID for the -[Google Cloud Project][gcp-project] you want to use. - -After completing the steps under **Installation** and **Define your Function**, build the container using the example `Dockerfile`. This Dockerfile is -built on top of the [App Engine runtime for PHP 7.4][gae-php7], but you can use -any container you want as long as your application listens on **Port 8080**. - -```sh -docker build . \ - -f vendor/google/cloud-functions-framework/examples/hello/Dockerfile \ - -t gcr.io/$GCLOUD_PROJECT/my-cloud-function -``` - -> **NOTE**: Be sure to replace `$GCLOUD_PROJECT` with your Google Cloud project -ID, or set the environment variable using `export GCLOUD_PROJECT="some-project-id"`. - -Next, push your image to [Google Container Registry](https://cloud.google.com/container-registry). This will allow you to deploy it directly from Cloud Run. - -```sh -docker push gcr.io/$GCLOUD_PROJECT/my-cloud-function -``` - -Finally, use the `gcloud` command-line tool to deploy to Cloud Run: - -```sh -gcloud run deploy my-cloud-function \ - --image=gcr.io/$GCLOUD_PROJECT/my-cloud-function \ - --platform managed \ - --set-env-vars "FUNCTION_TARGET=helloHttp" \ - --allow-unauthenticated \ - --region $CLOUD_RUN_REGION \ - --project $GCLOUD_PROJECT -``` - -> **NOTE**: Be sure to replace `$CLOUD_RUN_REGION` with the -[correct region][cloud-run-regions] for your Cloud Run instance, for example -`us-central1`. - -After your instance deploys, you can access it at the URL provided, or view it -in the [Cloud Console][cloud-run-console]. - -[functions-samples]: https://github.com/GoogleCloudPlatform/php-docs-samples/tree/main/functions -[functions-how-to]: https://cloud.google.com/functions/docs/how-to -[gcloud]: https://cloud.google.com/sdk/gcloud/ -[gcloud-auth]: https://cloud.google.com/sdk/docs/authorizing -[gcp-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects -[gae-php7]: https://cloud.google.com/appengine/docs/standard/php7/runtime -[cloud-run-regions]: https://cloud.google.com/run/docs/locations -[cloud-run-console]: https://console.cloud.google.com/run +You can manually build your function as a container and deploy it into Cloud Run. Follow the [Cloud Run instructions for building a function](https://cloud.google.com/run/docs/building/functions) for complete instructions. ## Use CloudEvents From 312f3ddf7aae721450b1704c84b77c47d4672ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Kerekes?= Date: Mon, 30 Dec 2024 16:13:50 -0800 Subject: [PATCH 2/5] fix: update source files with PHP-CS-Fixer --- .php-cs-fixer.cache | 1 + src/Context.php | 1 + src/Emitter.php | 1 + src/FunctionValidationTrait.php | 1 + src/FunctionWrapper.php | 1 + src/HttpFunctionWrapper.php | 1 + src/LegacyEventMapper.php | 1 + src/ProjectContext.php | 1 + 8 files changed, 8 insertions(+) create mode 100644 .php-cs-fixer.cache diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache new file mode 100644 index 00000000..a3f48221 --- /dev/null +++ b/.php-cs-fixer.cache @@ -0,0 +1 @@ +{"php":"8.2.19","version":"3.66.0","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/CloudEventSdkCompliant.php":"8c9290b7cfb460ab7729c98865e02c21","src\/ProjectContext.php":"bb3136df0092787dde69ec2213546681","src\/TypedFunctionWrapper.php":"eb016ab43be4b8557d0f808ee4f3c03b","src\/LegacyEventMapper.php":"0abcfc18b3ece9e95ae380cc20becb18","src\/BadRequestError.php":"8fc72eecd9fdf2b28eb471042031e971","src\/CloudEvent.php":"4fa1bede467bc972f2057536e977d7ab","src\/FunctionsFrameworkTesting.php":"79144b91b146a54002cd8ffb130bb383","src\/HttpFunctionWrapper.php":"4d583f3940c03572e39202a1a1d4b79e","src\/FunctionWrapper.php":"b01a76a89fa0a634212bfc3900edbb58","src\/Invoker.php":"265739e0700b2ca9cb982f79cd17e8ec","src\/CloudEventFunctionWrapper.php":"f939bf95ea182ceb76075b00d24fa8f7","src\/Context.php":"42bd88c6224e584faf9ea9cd80bbbb9d","src\/FunctionValidationTrait.php":"3111cf0e846b244d9b582a01331e26b5","src\/FunctionsFramework.php":"ab95a2603d172399e76e183417211bce","src\/Emitter.php":"37034f79c1fa959a574580e3117e074d"}} \ No newline at end of file diff --git a/src/Context.php b/src/Context.php index ee9376b5..42df7388 100644 --- a/src/Context.php +++ b/src/Context.php @@ -1,4 +1,5 @@ Date: Mon, 30 Dec 2024 16:17:46 -0800 Subject: [PATCH 3/5] fix: more fixes by PHP-CS-Fixer --- .php-cs-fixer.cache | 2 +- examples/hello/index.php | 1 + tests/ContextTest.php | 1 + tests/EmitterTest.php | 1 + tests/FunctionsFrameworkTest.php | 1 + tests/HttpFunctionWrapperTest.php | 1 + tests/dockerTest.php | 1 + tests/exampleTest.php | 1 + tests/vendorTest.php | 1 + 9 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache index a3f48221..e04634ed 100644 --- a/.php-cs-fixer.cache +++ b/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.2.19","version":"3.66.0","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/CloudEventSdkCompliant.php":"8c9290b7cfb460ab7729c98865e02c21","src\/ProjectContext.php":"bb3136df0092787dde69ec2213546681","src\/TypedFunctionWrapper.php":"eb016ab43be4b8557d0f808ee4f3c03b","src\/LegacyEventMapper.php":"0abcfc18b3ece9e95ae380cc20becb18","src\/BadRequestError.php":"8fc72eecd9fdf2b28eb471042031e971","src\/CloudEvent.php":"4fa1bede467bc972f2057536e977d7ab","src\/FunctionsFrameworkTesting.php":"79144b91b146a54002cd8ffb130bb383","src\/HttpFunctionWrapper.php":"4d583f3940c03572e39202a1a1d4b79e","src\/FunctionWrapper.php":"b01a76a89fa0a634212bfc3900edbb58","src\/Invoker.php":"265739e0700b2ca9cb982f79cd17e8ec","src\/CloudEventFunctionWrapper.php":"f939bf95ea182ceb76075b00d24fa8f7","src\/Context.php":"42bd88c6224e584faf9ea9cd80bbbb9d","src\/FunctionValidationTrait.php":"3111cf0e846b244d9b582a01331e26b5","src\/FunctionsFramework.php":"ab95a2603d172399e76e183417211bce","src\/Emitter.php":"37034f79c1fa959a574580e3117e074d"}} \ No newline at end of file +{"php":"8.2.19","version":"3.66.0","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/CloudEventSdkCompliant.php":"8c9290b7cfb460ab7729c98865e02c21","src\/ProjectContext.php":"bb3136df0092787dde69ec2213546681","src\/TypedFunctionWrapper.php":"eb016ab43be4b8557d0f808ee4f3c03b","src\/LegacyEventMapper.php":"0abcfc18b3ece9e95ae380cc20becb18","src\/BadRequestError.php":"8fc72eecd9fdf2b28eb471042031e971","src\/CloudEvent.php":"4fa1bede467bc972f2057536e977d7ab","src\/FunctionsFrameworkTesting.php":"79144b91b146a54002cd8ffb130bb383","src\/HttpFunctionWrapper.php":"4d583f3940c03572e39202a1a1d4b79e","src\/FunctionWrapper.php":"b01a76a89fa0a634212bfc3900edbb58","src\/Invoker.php":"265739e0700b2ca9cb982f79cd17e8ec","src\/CloudEventFunctionWrapper.php":"f939bf95ea182ceb76075b00d24fa8f7","src\/Context.php":"42bd88c6224e584faf9ea9cd80bbbb9d","src\/FunctionValidationTrait.php":"3111cf0e846b244d9b582a01331e26b5","src\/FunctionsFramework.php":"ab95a2603d172399e76e183417211bce","src\/Emitter.php":"37034f79c1fa959a574580e3117e074d","tests\/routerTest.php":"579449d41253955f4c4209e0bb9317d3","tests\/exampleTest.php":"209d17aa17e17e15b417054204b62d3e","tests\/dockerTest.php":"15874da6b8bc337889f08815bf42f5d0","tests\/CloudEventSdkCompliantTest.php":"d2a9fbc91953729ea78ee018ae9d5c76","tests\/TypedFunctionWrapperTest.php":"66a1b3e3915f4ad4e9352ec74cd29161","tests\/vendorTest.php":"bd1e7272c57f92f2ab93083b5575a93a","tests\/FunctionsFrameworkTest.php":"c2974ccf09c182da050783a72454284e","tests\/InvokerTest.php":"874f90c9614d91e111138fd396e0e07c","tests\/ProjectContextTest.php":"d399ff0e49d7488e6b7962c3d84f0073","tests\/EmitterTest.php":"5a1c2e3aeab015ab29bfa4c0d97f1e72","tests\/common\/types.php":"cf249c44ca531ab124d3d4d07c605a6b","tests\/ContextTest.php":"adfb507101f187e59fe8f9e7469e60ea","tests\/CloudEventTest.php":"a9e150a55b79982fb681b7ffd81b1994","tests\/HttpFunctionWrapperTest.php":"aeeaa7d2528888dcb0f19a12e71ea294","tests\/conformance\/index.php":"02eec793fae5117c4baa9bc2de78e2d4","tests\/CloudEventFunctionsWrapperTest.php":"46bc0e55044bfbcae14379ea1741cf2c","tests\/fixtures\/docker.php":"ac404504906586e7a6bc429608ea684e","tests\/fixtures\/gcs.php":"21f8b46355f11b53e1469d265992d348","tests\/fixtures\/relative.php":"738b5e7558a686ba933ca1764798c923","tests\/fixtures\/index.php":"3e78f6494c2bf0e5e684f67c0ad8b659","tests\/fixtures\/absolute.php":"cfac2ae9350bc4d7f59ba0072d0002c5","tests\/LegacyEventMapperTest.php":"80e3f08fc8a0156eb2129af88269b980","examples\/hello\/index.php":"f265f5663e69910a092cceb148523e16"}} \ No newline at end of file diff --git a/examples/hello/index.php b/examples/hello/index.php index e82e139a..bc4d0987 100644 --- a/examples/hello/index.php +++ b/examples/hello/index.php @@ -1,4 +1,5 @@ Date: Fri, 3 Jan 2025 11:38:36 -0800 Subject: [PATCH 4/5] delete .php-cs-fixer.cache and add it to gitignore --- .php-cs-fixer.cache | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .php-cs-fixer.cache diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache deleted file mode 100644 index e04634ed..00000000 --- a/.php-cs-fixer.cache +++ /dev/null @@ -1 +0,0 @@ -{"php":"8.2.19","version":"3.66.0","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/CloudEventSdkCompliant.php":"8c9290b7cfb460ab7729c98865e02c21","src\/ProjectContext.php":"bb3136df0092787dde69ec2213546681","src\/TypedFunctionWrapper.php":"eb016ab43be4b8557d0f808ee4f3c03b","src\/LegacyEventMapper.php":"0abcfc18b3ece9e95ae380cc20becb18","src\/BadRequestError.php":"8fc72eecd9fdf2b28eb471042031e971","src\/CloudEvent.php":"4fa1bede467bc972f2057536e977d7ab","src\/FunctionsFrameworkTesting.php":"79144b91b146a54002cd8ffb130bb383","src\/HttpFunctionWrapper.php":"4d583f3940c03572e39202a1a1d4b79e","src\/FunctionWrapper.php":"b01a76a89fa0a634212bfc3900edbb58","src\/Invoker.php":"265739e0700b2ca9cb982f79cd17e8ec","src\/CloudEventFunctionWrapper.php":"f939bf95ea182ceb76075b00d24fa8f7","src\/Context.php":"42bd88c6224e584faf9ea9cd80bbbb9d","src\/FunctionValidationTrait.php":"3111cf0e846b244d9b582a01331e26b5","src\/FunctionsFramework.php":"ab95a2603d172399e76e183417211bce","src\/Emitter.php":"37034f79c1fa959a574580e3117e074d","tests\/routerTest.php":"579449d41253955f4c4209e0bb9317d3","tests\/exampleTest.php":"209d17aa17e17e15b417054204b62d3e","tests\/dockerTest.php":"15874da6b8bc337889f08815bf42f5d0","tests\/CloudEventSdkCompliantTest.php":"d2a9fbc91953729ea78ee018ae9d5c76","tests\/TypedFunctionWrapperTest.php":"66a1b3e3915f4ad4e9352ec74cd29161","tests\/vendorTest.php":"bd1e7272c57f92f2ab93083b5575a93a","tests\/FunctionsFrameworkTest.php":"c2974ccf09c182da050783a72454284e","tests\/InvokerTest.php":"874f90c9614d91e111138fd396e0e07c","tests\/ProjectContextTest.php":"d399ff0e49d7488e6b7962c3d84f0073","tests\/EmitterTest.php":"5a1c2e3aeab015ab29bfa4c0d97f1e72","tests\/common\/types.php":"cf249c44ca531ab124d3d4d07c605a6b","tests\/ContextTest.php":"adfb507101f187e59fe8f9e7469e60ea","tests\/CloudEventTest.php":"a9e150a55b79982fb681b7ffd81b1994","tests\/HttpFunctionWrapperTest.php":"aeeaa7d2528888dcb0f19a12e71ea294","tests\/conformance\/index.php":"02eec793fae5117c4baa9bc2de78e2d4","tests\/CloudEventFunctionsWrapperTest.php":"46bc0e55044bfbcae14379ea1741cf2c","tests\/fixtures\/docker.php":"ac404504906586e7a6bc429608ea684e","tests\/fixtures\/gcs.php":"21f8b46355f11b53e1469d265992d348","tests\/fixtures\/relative.php":"738b5e7558a686ba933ca1764798c923","tests\/fixtures\/index.php":"3e78f6494c2bf0e5e684f67c0ad8b659","tests\/fixtures\/absolute.php":"cfac2ae9350bc4d7f59ba0072d0002c5","tests\/LegacyEventMapperTest.php":"80e3f08fc8a0156eb2129af88269b980","examples\/hello\/index.php":"f265f5663e69910a092cceb148523e16"}} \ No newline at end of file From 6ef01ad6cdcf26ca42bb4b63d5f4c52d77f145c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Kerekes?= Date: Fri, 3 Jan 2025 11:41:52 -0800 Subject: [PATCH 5/5] add .php-cs-fixer.cache to gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 124e0b88..1f6ab2aa 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ vendor/ .idea/ /.php_cs.cache *.iml -.phpunit.result.cache \ No newline at end of file +.phpunit.result.cache +.php-cs-fixer.cache