Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function onPostRespond(ResponseEvent $event): void |
||
22 | { |
||
23 | $request = $event->getRequest(); |
||
24 | $attributes = $this->getAttributes($request); |
||
25 | if ($attributes['operation']->getName() !== 'me' || !($response = $event->getResponse()) instanceof JWTAuthenticationFailureResponse) { |
||
26 | return; |
||
27 | } |
||
28 | $response->headers->setCookie($this->mercureAuthorization->getClearAuthorizationCookie()); |
||
29 | } |
||
31 |