public function __construct(CacheItemPoolInterface $cache, UAFamilyParser $parser, $lifetime = 0, $prefix = 'nelmio-ua-parser-') { $this->parser = $parser; $this->cache = $cache; $this->lifetime = $lifetime; $this->prefix = $prefix; }