Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function handleRequest(RequestInterface $request, ResponseInterface $response) |
||
32 | { |
||
33 | $this->request = $request; |
||
34 | $this->response = $response; |
||
35 | /** @var CrawlerDetect $CrawlerDetect */ |
||
36 | $CrawlerDetect = $this->loader->getShared('EventEspressoVendor\Jaybizzle\CrawlerDetect\CrawlerDetect'); |
||
37 | // Check and record the user agent of the current 'visitor' |
||
38 | $this->request->setIsBot($CrawlerDetect->isCrawler()); |
||
39 | $this->request->setUserAgent($CrawlerDetect->userAgent()); |
||
40 | $this->response = $this->processRequestStack($this->request, $this->response); |
||
41 | return $this->response; |
||
42 | } |
||
43 | |||
46 |