diff options
Diffstat (limited to 'apps/theming/lib/ImageManager.php')
-rw-r--r-- | apps/theming/lib/ImageManager.php | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index c987e7f4a9b..c577e099a96 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -42,38 +42,21 @@ use OCP\Files\SimpleFS\ISimpleFile; use OCP\Files\SimpleFS\ISimpleFolder; use OCP\ICacheFactory; use OCP\IConfig; -use OCP\ILogger; use OCP\ITempManager; use OCP\IURLGenerator; +use Psr\Log\LoggerInterface; class ImageManager { public const SUPPORTED_IMAGE_KEYS = ['background', 'logo', 'logoheader', 'favicon']; - /** @var IConfig */ - private $config; - /** @var IAppData */ - private $appData; - /** @var IURLGenerator */ - private $urlGenerator; - /** @var ICacheFactory */ - private $cacheFactory; - /** @var ILogger */ - private $logger; - /** @var ITempManager */ - private $tempManager; - - public function __construct(IConfig $config, - IAppData $appData, - IURLGenerator $urlGenerator, - ICacheFactory $cacheFactory, - ILogger $logger, - ITempManager $tempManager) { - $this->config = $config; - $this->urlGenerator = $urlGenerator; - $this->cacheFactory = $cacheFactory; - $this->logger = $logger; - $this->tempManager = $tempManager; - $this->appData = $appData; + public function __construct( + private IConfig $config, + private IAppData $appData, + private IURLGenerator $urlGenerator, + private ICacheFactory $cacheFactory, + private LoggerInterface $logger, + private ITempManager $tempManager, + ) { } /** |