Skip to content

Commit b34de5a

Browse files
committed
Document Environment::local() in xp lambda run vs xp lambda test
1 parent 84df59d commit b34de5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $ xp lambda run Greet '{"name":"Timm"}'
9292
Hello Timm from PHP 8.2.7 via Greet @ test-local-1
9393
```
9494

95-
*This does not provide a complete lambda environment, and does not have any execution limits imposed on it!*
95+
*This does not provide a complete lambda environment, and does not have any execution limits imposed on it! To detect this programmatically, use `$this->environment->local()`, which will return true.*
9696

9797
Integration testing
9898
-------------------
@@ -106,7 +106,7 @@ REPORT RequestId: 9ff45cda-df9b-1b8c-c21b-5fe27c8f2d24 Init Duration: 922.19 ms
106106
"Hello Timm from PHP 8.2.7 via test @ us-east-1"
107107
```
108108

109-
*This functionality is provided by the [AWS Lambda base images for custom runtimes](https://gallery.ecr.aws/lambda/provided)*
109+
*This functionality is provided by the [AWS Lambda base images for custom runtimes](https://gallery.ecr.aws/lambda/provided). Although this also runs on your machine, `$this->environment->local()` will return false.*
110110

111111
Setup
112112
-----

0 commit comments

Comments
 (0)