| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function inbound($request, Context $ctx) |
||
| 31 | { |
||
| 32 | $tags = $ctx->get(self::FLAG) ?? $request->getTags(); |
||
| 33 | if ($tags !== Tags::DEFAULT) { |
||
| 34 | $request->opsExtra('h-headers', static function (&$headers) use ($request, $tags) { |
||
| 35 | $request->setTags(...$tags); |
||
| 36 | $headers[Defined::X_ROUTE_TAGS] = implode(',', $tags); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $request; |
||
| 41 | } |
||
| 53 |