diff --git a/system/src/Grav/Common/Page/Medium/AbstractMedia.php b/system/src/Grav/Common/Page/Medium/AbstractMedia.php index 61bf6ca8c..99c47c112 100644 --- a/system/src/Grav/Common/Page/Medium/AbstractMedia.php +++ b/system/src/Grav/Common/Page/Medium/AbstractMedia.php @@ -66,6 +66,8 @@ abstract class AbstractMedia implements ExportInterface, MediaCollectionInterfac /** @var array */ protected $config = []; /** @var array */ + protected $settings = []; + /** @var array */ protected $standard_exif = ['FileSize', 'MimeType', 'height', 'width']; /** @var string|null */ protected $indexFolder; @@ -684,7 +686,7 @@ abstract class AbstractMedia implements ExportInterface, MediaCollectionInterfac */ protected function init(): void { - // Handle special cases where page doesn't exist in filesystem. + // Handle special cases where the object doesn't exist in filesystem. if (!$this->exists()) { return; } @@ -1024,6 +1026,14 @@ abstract class AbstractMedia implements ExportInterface, MediaCollectionInterfac return Grav::instance(); } + /** + * @return Debugger + */ + protected function getDebugger(): Debugger + { + return $this->getGrav()['debugger']; + } + /** * @return UniformResourceLocator */