diff options
Diffstat (limited to 'core/Command/Config/System')
-rw-r--r-- | core/Command/Config/System/Base.php | 7 | ||||
-rw-r--r-- | core/Command/Config/System/DeleteConfig.php | 9 | ||||
-rw-r--r-- | core/Command/Config/System/GetConfig.php | 9 | ||||
-rw-r--r-- | core/Command/Config/System/SetConfig.php | 9 |
4 files changed, 8 insertions, 26 deletions
diff --git a/core/Command/Config/System/Base.php b/core/Command/Config/System/Base.php index 0f43c21c977..18bc9cb7ca0 100644 --- a/core/Command/Config/System/Base.php +++ b/core/Command/Config/System/Base.php @@ -26,9 +26,12 @@ use OC\SystemConfig; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; abstract class Base extends \OC\Core\Command\Base { + protected SystemConfig $systemConfig; - /** @var SystemConfig */ - protected $systemConfig; + public function __construct(SystemConfig $systemConfig) { + parent::__construct(); + $this->systemConfig = $systemConfig; + } /** * @param string $argumentName diff --git a/core/Command/Config/System/DeleteConfig.php b/core/Command/Config/System/DeleteConfig.php index 8ce227e607a..f4d49ba8f51 100644 --- a/core/Command/Config/System/DeleteConfig.php +++ b/core/Command/Config/System/DeleteConfig.php @@ -30,15 +30,8 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class DeleteConfig extends Base { - /** * @var SystemConfig */ - protected $systemConfig; - - /** - * @param SystemConfig $systemConfig - */ public function __construct(SystemConfig $systemConfig) { - parent::__construct(); - $this->systemConfig = $systemConfig; + parent::__construct($systemConfig); } protected function configure() { diff --git a/core/Command/Config/System/GetConfig.php b/core/Command/Config/System/GetConfig.php index 265fc70900f..01bbf82d5d1 100644 --- a/core/Command/Config/System/GetConfig.php +++ b/core/Command/Config/System/GetConfig.php @@ -29,15 +29,8 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class GetConfig extends Base { - /** * @var SystemConfig */ - protected $systemConfig; - - /** - * @param SystemConfig $systemConfig - */ public function __construct(SystemConfig $systemConfig) { - parent::__construct(); - $this->systemConfig = $systemConfig; + parent::__construct($systemConfig); } protected function configure() { diff --git a/core/Command/Config/System/SetConfig.php b/core/Command/Config/System/SetConfig.php index 4b6ae73004d..01a1999bcf9 100644 --- a/core/Command/Config/System/SetConfig.php +++ b/core/Command/Config/System/SetConfig.php @@ -32,15 +32,8 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class SetConfig extends Base { - /** * @var SystemConfig */ - protected $systemConfig; - - /** - * @param SystemConfig $systemConfig - */ public function __construct(SystemConfig $systemConfig) { - parent::__construct(); - $this->systemConfig = $systemConfig; + parent::__construct($systemConfig); } protected function configure() { |