public function __construct(Cache $cache, Database $db, EntityTable $entityTable, Events $events, Session $session) { $this->cache = $cache; $this->db = $db; $this->entityTable = $entityTable; $this->events = $events; $this->session = $session; $this->table = $this->db->prefix . "metadata"; }