Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function __invoke(array $record): array |
||
30 | { |
||
31 | $request = $this->requestStack->getMainRequest(); |
||
32 | |||
33 | if (!$request) { |
||
34 | return $record; |
||
35 | } |
||
36 | |||
37 | $record['extra']['request_uri'] = $request->getUri(); |
||
38 | $record['extra']['request_method'] = $request->getRealMethod(); |
||
39 | |||
40 | return $record; |
||
41 | } |
||
43 |