mirror of
https://github.com/getgrav/grav.git
synced 2026-08-03 22:59:44 +02:00
Added getDebugger() method into AbstractMedia
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user