We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e58748c commit ed38172Copy full SHA for ed38172
src/AbstractJob.php
@@ -42,6 +42,16 @@ protected function setup()
42
unset($this->params['id']);
43
}
44
45
+ // Next we need to replace any segments with our params.
46
+ foreach ($this->params as $param => $value) {
47
+ if (is_array($value)) {
48
+ continue;
49
+ }
50
+ if (strpos($this->endpoint, "{{$param}}") !== false) {
51
+ $this->endpoint = str_replace("{{$param}}",$value, $this->endpoint);
52
+ unset($this->params[$param]);
53
54
55
$request = new Request($this->endpoint, $method, $this->params);
56
57
if (! empty($this->decorator)) {
0 commit comments