aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/ImageManager.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-19 16:06:40 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-09-21 11:57:21 +0200
commit0a9371f99f05786068d6f6a72b9a717ec24690a8 (patch)
tree90ae93c3e608e2bf90a1ed0a54defb053d3e86ef /apps/theming/lib/ImageManager.php
parentb6761fbc967bd165279ca20af8c05cae045267d4 (diff)
downloadnextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.tar.gz
nextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.zip
Migrate applications away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/theming/lib/ImageManager.php')
-rw-r--r--apps/theming/lib/ImageManager.php35
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,
+ ) {
}
/**