sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Expose defaultConnection() method to switch between localhost and cloud based on env

Open josh-berry opened this issue 1 year ago • 1 comments

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

josh-berry avatar Apr 12 '24 23:04 josh-berry

We use TEMPORAL_ADDRESS env in our temporal-bridge

https://github.com/spiral/temporal-bridge/blob/38be446ffe9feae7ba26fe5d22876b7786fe08f7/src/Bootloader/TemporalBridgeBootloader.php#L124

roxblnfk avatar Apr 14 '24 13:04 roxblnfk