| @@ 38-48 (lines=11) @@ | ||
| 35 | ||
| 36 | } |
|
| 37 | ||
| 38 | public function getRoutingKeyFromHeader() |
|
| 39 | { |
|
| 40 | $headers = $this->getHeaders(); |
|
| 41 | ||
| 42 | if(! array_key_exists('routing_key', $headers)) |
|
| 43 | { |
|
| 44 | return null; |
|
| 45 | } |
|
| 46 | ||
| 47 | return $headers['routing_key']; |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| @@ 173-183 (lines=11) @@ | ||
| 170 | return (!empty($retryHeader) && (int) $retryHeader === $retryOccurence); |
|
| 171 | } |
|
| 172 | ||
| 173 | public function getRoutingKeyFromHeader() |
|
| 174 | { |
|
| 175 | $headers = $this->getHeaders(); |
|
| 176 | ||
| 177 | if(! array_key_exists('routing_key', $headers)) |
|
| 178 | { |
|
| 179 | return null; |
|
| 180 | } |
|
| 181 | ||
| 182 | return $headers['routing_key']; |
|
| 183 | } |
|
| 184 | } |
|
| 185 | ||