From a7eb116537153a3dac5c72ce59894df745d3e7a1 Mon Sep 17 00:00:00 2001 From: Richard Herbert <1644678+richardherbert@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:35:03 +0000 Subject: [PATCH] Update environments.md I think it would help anyone just copying and pasting the signature if it included `function` --- .../coldbox.cfc/configuration-directives/environments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/configuration/coldbox.cfc/configuration-directives/environments.md b/getting-started/configuration/coldbox.cfc/configuration-directives/environments.md index 20993b56..713ad8a2 100644 --- a/getting-started/configuration/coldbox.cfc/configuration-directives/environments.md +++ b/getting-started/configuration/coldbox.cfc/configuration-directives/environments.md @@ -66,7 +66,7 @@ This method is more reliable than relying on cgi.http\_host, since it will never If you are NOT using environmental variables you can use your own detection algorithm instead of looking at the `cgi.http_host` variable. You will NOT fill out an environments structure but actually create a method with the following signature: ```javascript -string public detectEnvironment(){ +string public function detectEnvironment(){ } ```