public function __construct(Conf $config, Database $db, EntityCache $entity_cache, MetadataCache $metadata_cache, SubtypeTable $subtype_table, EventsService $events, ElggSession $session, Translator $translator, Logger $logger)
{
$this->config = $config;
$this->db = $db;
$this->table = $this->db->prefix . 'entities';
$this->entity_cache = $entity_cache;
$this->metadata_cache = $metadata_cache;
$this->subtype_table = $subtype_table;
$this->events = $events;
$this->session = $session;
$this->translator = $translator;
$this->logger = $logger;
}