/** * Parses the UA for bot information using the Bot parser */ protected function parseBot() { $botParser = new Bot(); $botParser->setUserAgent($this->getUserAgent()); $botParser->setCache($this->getCache()); if ($this->discardBotInformation) { $botParser->discardDetails(); } $this->bot = $botParser->parse(); }
/** * Parses the UA for bot information using the Bot parser */ protected function parseBot() { if ($this->skipBotDetection) { $this->bot = false; return false; } $botParser = new Bot(); $botParser->setUserAgent($this->getUserAgent()); $botParser->setYamlParser($this->getYamlParser()); $botParser->setCache($this->getCache()); if ($this->discardBotInformation) { $botParser->discardDetails(); } $this->bot = $botParser->parse(); }