temporalio / sdk-php

Temporal PHP SDK
https://php.preview.thundergun.io
MIT License
256 stars 45 forks source link

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

Open josh-berry opened 5 months ago

josh-berry commented 5 months ago

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

roxblnfk commented 5 months ago

We use TEMPORAL_ADDRESS env in our temporal-bridge

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