public function __construct(Conf $config, Database $db, EntityTable $entities, EntityCache $cache, EventsService $events)
{
$this->config = $config;
$this->db = $db;
$this->table = $this->db->prefix . "users_entity";
$this->entities = $entities;
$this->entity_cache = $cache;
$this->events = $events;
}