Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-17 19:26:27 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-24 18:21:25 +0300
commitea23523c70ee562092510ccf88e7aa469aae9ce6 (patch)
treeda0ce15036d2f7b82ef1a0e44adb497c8e951cb3 /core
parenteb961e47003ee5b6d7328caf10ecd5f53cc93666 (diff)
Adapt more code to migration to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/ConvertMysqlToMB4.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/core/Command/Db/ConvertMysqlToMB4.php b/core/Command/Db/ConvertMysqlToMB4.php
index 7abd600b3b9..28f7ae6b2fa 100644
--- a/core/Command/Db/ConvertMysqlToMB4.php
+++ b/core/Command/Db/ConvertMysqlToMB4.php
@@ -30,8 +30,8 @@ use OC\Migration\ConsoleOutput;
use OC\Repair\Collation;
use OCP\IConfig;
use OCP\IDBConnection;
-use OCP\ILogger;
use OCP\IURLGenerator;
+use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -46,16 +46,14 @@ class ConvertMysqlToMB4 extends Command {
/** @var IURLGenerator */
private $urlGenerator;
- /** @var ILogger */
- private $logger;
+ private LoggerInterface $logger;
- /**
- * @param IConfig $config
- * @param IDBConnection $connection
- * @param IURLGenerator $urlGenerator
- * @param ILogger $logger
- */
- public function __construct(IConfig $config, IDBConnection $connection, IURLGenerator $urlGenerator, ILogger $logger) {
+ public function __construct(
+ IConfig $config,
+ IDBConnection $connection,
+ IURLGenerator $urlGenerator,
+ LoggerInterface $logger
+ ) {
$this->config = $config;
$this->connection = $connection;
$this->urlGenerator = $urlGenerator;