public function __construct(Database $db) { parent::__construct($db); $this->finfo = new \finfo(FILEINFO_MIME); }