diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-20 14:08:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-20 16:35:38 +0200 |
commit | b09620651cbb72e5a623d47ed409e949b114c7cf (patch) | |
tree | 7ebae0d2f95477044de84c666f07b341da7b5efd /core/Command | |
parent | 420a3762cba2f8ef300f95f7c9de188bcbef65bb (diff) | |
download | nextcloud-server-b09620651cbb72e5a623d47ed409e949b114c7cf.tar.gz nextcloud-server-b09620651cbb72e5a623d47ed409e949b114c7cf.zip |
Don't use deprecated getIniWrapper() anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
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(), |