| @@ -22,9 +22,13 @@ | ||
| 22 | 22 | |
| 23 | 23 | class Service |
| 24 | 24 | { |
| 25 | 25 | public $batchPath; |
| 26 | + /** | |
| 27 | + * Only used in getBatch | |
| 28 | + */ | |
| 26 | 29 | public $rootUrl; |
| 30 | + public $rootUrlTemplate; | |
| 27 | 31 | public $version; |
| 28 | 32 | public $servicePath; |
| 29 | 33 | public $serviceName; |
| 30 | 34 | public $availableScopes; |
| @@ -64,9 +68,9 @@ | ||
| 64 | 68 | { |
| 65 | 69 | return new Batch( |
| 66 | 70 | $this->client, |
| 67 | 71 | false, |
| 68 | - $this->rootUrl, | |
| 72 | + $this->rootUrlTemplate ?? $this->rootUrl, | |
| 69 | 73 | $this->batchPath |
| 70 | 74 | ); |
| 71 | 75 | } |
| 72 | 76 | } |