diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-16 14:26:43 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-27 14:34:32 +0200 |
commit | 56ae87c281d2f54b23f98acf0e138d8e72196a06 (patch) | |
tree | d875702c4eb0901bcf6d3e23570a05ba5c397954 /lib/private/Setup.php | |
parent | bf1c875425e7fdf5ffd3c233ddf1f567428b4168 (diff) | |
download | nextcloud-server-56ae87c281d2f54b23f98acf0e138d8e72196a06.tar.gz nextcloud-server-56ae87c281d2f54b23f98acf0e138d8e72196a06.zip |
Less ILogger
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r-- | lib/private/Setup.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 98cf11e3a87..fe658b2eedd 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -60,8 +60,8 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\Defaults; use OCP\IGroup; use OCP\IL10N; -use OCP\ILogger; use OCP\Security\ISecureRandom; +use Psr\Log\LoggerInterface; class Setup { /** @var SystemConfig */ @@ -72,28 +72,19 @@ class Setup { protected $l10n; /** @var Defaults */ protected $defaults; - /** @var ILogger */ + /** @var LoggerInterface */ protected $logger; /** @var ISecureRandom */ protected $random; /** @var Installer */ protected $installer; - /** - * @param SystemConfig $config - * @param IniGetWrapper $iniWrapper - * @param IL10N $l10n - * @param Defaults $defaults - * @param ILogger $logger - * @param ISecureRandom $random - * @param Installer $installer - */ public function __construct( SystemConfig $config, IniGetWrapper $iniWrapper, IL10N $l10n, Defaults $defaults, - ILogger $logger, + LoggerInterface $logger, ISecureRandom $random, Installer $installer ) { @@ -511,7 +502,7 @@ class Setup { \OC::$server->get(IniGetWrapper::class), \OC::$server->getL10N('lib'), \OC::$server->query(Defaults::class), - \OC::$server->getLogger(), + \OC::$server->get(LoggerInterface::class), \OC::$server->getSecureRandom(), \OC::$server->query(Installer::class) ); |