Added getDebugger() method into AbstractMedia

This commit is contained in:
Matias Griese
2022-04-19 19:35:11 +03:00
parent da7500cb0e
commit 7b99d905ae

View File

@@ -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
*/