/** * {@inheritdoc} */ public function getDevice($userAgent) { $userAgentTokenizedToken = new UserAgentTokenizedToken(new UserAgentToken($userAgent), new UserAgentTokenizer()); $this->tokenPool->removeAll(); $this->tokenPool->add($userAgentTokenizedToken); return $this->deviceDetector->detect($this->tokenPool); }