Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
34 | { |
||
35 | $output = $handler->handle($request); |
||
36 | |||
37 | $crawlerInformation = $request->getHeaderLine($this->headerName) ?? null; |
||
38 | if (empty($crawlerInformation)) { |
||
39 | return $output; |
||
40 | } |
||
41 | |||
42 | // Output log data for crawler (serialized content): |
||
43 | $content = serialize($GLOBALS['TSFE']->applicationData['tx_crawler']); |
||
44 | $response = new Response(); |
||
45 | $response->getBody()->write($content); |
||
46 | |||
47 | return $response; |
||
48 | } |
||
51 |