sdk-php
sdk-php copied to clipboard
Expose defaultConnection() method to switch between localhost and cloud based on env
Expose a defaultConnection() method or similar that switches between localhost (default) and cloud based on some environment variable, so that we can use it in the samples repos to allow people to easily run samples in the cloud. See: https://github.com/temporalio/features/issues/454
We use TEMPORAL_ADDRESS env in our temporal-bridge
https://github.com/spiral/temporal-bridge/blob/38be446ffe9feae7ba26fe5d22876b7786fe08f7/src/Bootloader/TemporalBridgeBootloader.php#L124