diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-20 19:45:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 19:45:47 +0200 |
commit | 987f62117351a658dc8c0916e38cfb0b7ca60982 (patch) | |
tree | 71baa54377f3bc4daf0329f08fa568f3e51e16ea /core/Command | |
parent | ed1f89ae1023cff43d50f0cf027337eed872a31e (diff) | |
parent | 590d46121097d8b7dcd6f722b95f9dc4bdee653e (diff) | |
download | nextcloud-server-987f62117351a658dc8c0916e38cfb0b7ca60982.tar.gz nextcloud-server-987f62117351a658dc8c0916e38cfb0b7ca60982.zip |
Merge pull request #22331 from nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper
Don't use deprecated getIniWrapper() anymore
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Maintenance/Install.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php index 9cca77bb9c0..a8032e24af5 100644 --- a/core/Command/Maintenance/Install.php +++ b/core/Command/Maintenance/Install.php @@ -32,6 +32,7 @@ namespace OC\Core\Command\Maintenance; +use bantu\IniGetWrapper\IniGetWrapper; use InvalidArgumentException; use OC\Installer; use OC\Setup; @@ -46,14 +47,15 @@ use Symfony\Component\Console\Question\Question; class Install extends Command { - /** - * @var SystemConfig - */ + /** @var SystemConfig */ private $config; + /** @var IniGetWrapper */ + private $iniGetWrapper; - public function __construct(SystemConfig $config) { + public function __construct(SystemConfig $config, IniGetWrapper $iniGetWrapper) { parent::__construct(); $this->config = $config; + $this->iniGetWrapper = $iniGetWrapper; } protected function configure() { @@ -79,7 +81,7 @@ class Install extends Command { $server = \OC::$server; $setupHelper = new Setup( $this->config, - $server->getIniWrapper(), + $this->iniGetWrapper, $server->getL10N('lib'), $server->query(Defaults::class), $server->getLogger(), |