use Symfony\Component\Console\Output\OutputInterface;
class DataFingerprint extends Command {
- protected IConfig $config;
- protected ITimeFactory $timeFactory;
-
- public function __construct(IConfig $config,
- ITimeFactory $timeFactory) {
- $this->config = $config;
- $this->timeFactory = $timeFactory;
+ public function __construct(
+ protected IConfig $config,
+ protected ITimeFactory $timeFactory,
+ ) {
parent::__construct();
}
use function get_class;
class Install extends Command {
- private SystemConfig $config;
- private IniGetWrapper $iniGetWrapper;
-
- public function __construct(SystemConfig $config, IniGetWrapper $iniGetWrapper) {
+ public function __construct(
+ private SystemConfig $config,
+ private IniGetWrapper $iniGetWrapper,
+ ) {
parent::__construct();
- $this->config = $config;
- $this->iniGetWrapper = $iniGetWrapper;
}
protected function configure() {
class UpdateDB extends Command {
public const DEFAULT_MIMETYPE = 'application/octet-stream';
- protected IMimeTypeDetector $mimetypeDetector;
- protected IMimeTypeLoader $mimetypeLoader;
-
public function __construct(
- IMimeTypeDetector $mimetypeDetector,
- IMimeTypeLoader $mimetypeLoader
+ protected IMimeTypeDetector $mimetypeDetector,
+ protected IMimeTypeLoader $mimetypeLoader,
) {
parent::__construct();
- $this->mimetypeDetector = $mimetypeDetector;
- $this->mimetypeLoader = $mimetypeLoader;
}
protected function configure() {
use Symfony\Component\Console\Output\OutputInterface;
class UpdateJS extends Command {
- protected IMimeTypeDetector $mimetypeDetector;
-
- public function __construct(
- IMimeTypeDetector $mimetypeDetector
- ) {
+ public function __construct(protected IMimeTypeDetector $mimetypeDetector) {
parent::__construct();
- $this->mimetypeDetector = $mimetypeDetector;
}
protected function configure() {
use Symfony\Component\Console\Output\OutputInterface;
class Mode extends Command {
- protected IConfig $config;
-
- public function __construct(IConfig $config) {
- $this->config = $config;
+ public function __construct(protected IConfig $config) {
parent::__construct();
}
use Symfony\Component\Console\Output\OutputInterface;
class Repair extends Command {
- protected \OC\Repair $repair;
- protected IConfig $config;
- private IEventDispatcher $dispatcher;
private ProgressBar $progress;
private OutputInterface $output;
- private IAppManager $appManager;
protected bool $errored = false;
- public function __construct(\OC\Repair $repair, IConfig $config, IEventDispatcher $dispatcher, IAppManager $appManager) {
- $this->repair = $repair;
- $this->config = $config;
- $this->dispatcher = $dispatcher;
- $this->appManager = $appManager;
+ public function __construct(
+ protected \OC\Repair $repair,
+ protected IConfig $config,
+ private IEventDispatcher $dispatcher,
+ private IAppManager $appManager,
+ ) {
parent::__construct();
}
use Symfony\Component\Console\Question\ConfirmationQuestion;
class RepairShareOwnership extends Command {
- private IDBConnection $dbConnection;
- private IUserManager $userManager;
-
public function __construct(
- IDBConnection $dbConnection,
- IUserManager $userManager
+ private IDBConnection $dbConnection,
+ private IUserManager $userManager,
) {
- $this->dbConnection = $dbConnection;
- $this->userManager = $userManager;
parent::__construct();
}
use Symfony\Component\Console\Output\OutputInterface;
class UpdateTheme extends UpdateJS {
- protected IMimeTypeDetector $mimetypeDetector;
- protected ICacheFactory $cacheFactory;
-
public function __construct(
IMimeTypeDetector $mimetypeDetector,
- ICacheFactory $cacheFactory
+ protected ICacheFactory $cacheFactory,
) {
parent::__construct($mimetypeDetector);
- $this->cacheFactory = $cacheFactory;
}
protected function configure() {