get('system.media.auto_metadata_exif')) { if (function_exists('exif_read_data') && class_exists(Reader::class)) { $this->reader = Reader::factory(Reader::TYPE_NATIVE); } else { throw new RuntimeException('Please enable the Exif extension for PHP or disable Exif support in Grav system configuration'); } } } /** * @return Reader */ public function getReader() { return $this->reader; } }