Skip to content

Commit ea98a29

Browse files
committed
chore: Bump symfony/console
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent c857bb9 commit ea98a29

3 files changed

Lines changed: 140 additions & 140 deletions

File tree

3rdparty

Submodule 3rdparty updated 131 files

core/register_command.php

Lines changed: 138 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -121,169 +121,169 @@
121121
use OCP\Server;
122122
use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand;
123123

124-
$application->add(new CompletionCommand());
125-
$application->add(Server::get(Status::class));
126-
$application->add(Server::get(Check::class));
127-
$application->add(Server::get(CreateJs::class));
128-
$application->add(Server::get(SignApp::class));
129-
$application->add(Server::get(SignCore::class));
130-
$application->add(Server::get(CheckApp::class));
131-
$application->add(Server::get(CheckCore::class));
132-
$application->add(Server::get(ListRoutes::class));
133-
$application->add(Server::get(MatchRoute::class));
124+
$application->addCommand(new CompletionCommand());
125+
$application->addCommand(Server::get(Status::class));
126+
$application->addCommand(Server::get(Check::class));
127+
$application->addCommand(Server::get(CreateJs::class));
128+
$application->addCommand(Server::get(SignApp::class));
129+
$application->addCommand(Server::get(SignCore::class));
130+
$application->addCommand(Server::get(CheckApp::class));
131+
$application->addCommand(Server::get(CheckCore::class));
132+
$application->addCommand(Server::get(ListRoutes::class));
133+
$application->addCommand(Server::get(MatchRoute::class));
134134

135135
$config = Server::get(IConfig::class);
136136

137137
if ($config->getSystemValueBool('installed', false)) {
138-
$application->add(Server::get(Disable::class));
139-
$application->add(Server::get(Enable::class));
140-
$application->add(Server::get(Install::class));
141-
$application->add(Server::get(GetPath::class));
142-
$application->add(Server::get(ListApps::class));
143-
$application->add(Server::get(Remove::class));
144-
$application->add(Server::get(Update::class));
138+
$application->addCommand(Server::get(Disable::class));
139+
$application->addCommand(Server::get(Enable::class));
140+
$application->addCommand(Server::get(Install::class));
141+
$application->addCommand(Server::get(GetPath::class));
142+
$application->addCommand(Server::get(ListApps::class));
143+
$application->addCommand(Server::get(Remove::class));
144+
$application->addCommand(Server::get(Update::class));
145145

146-
$application->add(Server::get(Cleanup::class));
147-
$application->add(Server::get(Enforce::class));
148-
$application->add(Server::get(Command\TwoFactorAuth\Enable::class));
149-
$application->add(Server::get(Command\TwoFactorAuth\Disable::class));
150-
$application->add(Server::get(State::class));
146+
$application->addCommand(Server::get(Cleanup::class));
147+
$application->addCommand(Server::get(Enforce::class));
148+
$application->addCommand(Server::get(Command\TwoFactorAuth\Enable::class));
149+
$application->addCommand(Server::get(Command\TwoFactorAuth\Disable::class));
150+
$application->addCommand(Server::get(State::class));
151151

152-
$application->add(Server::get(Mode::class));
153-
$application->add(Server::get(Job::class));
154-
$application->add(Server::get(ListCommand::class));
155-
$application->add(Server::get(Delete::class));
156-
$application->add(Server::get(JobWorker::class));
157-
$application->add(Server::get(RunningJobs::class));
158-
$application->add(Server::get(JobsHistory::class));
152+
$application->addCommand(Server::get(Mode::class));
153+
$application->addCommand(Server::get(Job::class));
154+
$application->addCommand(Server::get(ListCommand::class));
155+
$application->addCommand(Server::get(Delete::class));
156+
$application->addCommand(Server::get(JobWorker::class));
157+
$application->addCommand(Server::get(RunningJobs::class));
158+
$application->addCommand(Server::get(JobsHistory::class));
159159

160-
$application->add(Server::get(Test::class));
160+
$application->addCommand(Server::get(Test::class));
161161

162-
$application->add(Server::get(DeleteConfig::class));
163-
$application->add(Server::get(GetConfig::class));
164-
$application->add(Server::get(SetConfig::class));
165-
$application->add(Server::get(Import::class));
166-
$application->add(Server::get(ListConfigs::class));
167-
$application->add(Server::get(Preset::class));
168-
$application->add(Server::get(Command\Config\System\DeleteConfig::class));
169-
$application->add(Server::get(Command\Config\System\GetConfig::class));
170-
$application->add(Server::get(Command\Config\System\SetConfig::class));
162+
$application->addCommand(Server::get(DeleteConfig::class));
163+
$application->addCommand(Server::get(GetConfig::class));
164+
$application->addCommand(Server::get(SetConfig::class));
165+
$application->addCommand(Server::get(Import::class));
166+
$application->addCommand(Server::get(ListConfigs::class));
167+
$application->addCommand(Server::get(Preset::class));
168+
$application->addCommand(Server::get(Command\Config\System\DeleteConfig::class));
169+
$application->addCommand(Server::get(Command\Config\System\GetConfig::class));
170+
$application->addCommand(Server::get(Command\Config\System\SetConfig::class));
171171

172-
$application->add(Server::get(File::class));
173-
$application->add(Server::get(Space::class));
174-
$application->add(Server::get(Storage::class));
175-
$application->add(Server::get(Storages::class));
172+
$application->addCommand(Server::get(File::class));
173+
$application->addCommand(Server::get(Space::class));
174+
$application->addCommand(Server::get(Storage::class));
175+
$application->addCommand(Server::get(Storages::class));
176176

177-
$application->add(Server::get(ConvertType::class));
178-
$application->add(Server::get(ConvertMysqlToMB4::class));
179-
$application->add(Server::get(ConvertFilecacheBigInt::class));
180-
$application->add(Server::get(AddMissingColumns::class));
181-
$application->add(Server::get(AddMissingIndices::class));
182-
$application->add(Server::get(AddMissingPrimaryKeys::class));
183-
$application->add(Server::get(DbInfo::class));
184-
$application->add(Server::get(DbSize::class));
185-
$application->add(Server::get(DbIndexUsage::class));
186-
$application->add(Server::get(DbLocks::class));
187-
$application->add(Server::get(ExpectedSchema::class));
188-
$application->add(Server::get(ExportSchema::class));
177+
$application->addCommand(Server::get(ConvertType::class));
178+
$application->addCommand(Server::get(ConvertMysqlToMB4::class));
179+
$application->addCommand(Server::get(ConvertFilecacheBigInt::class));
180+
$application->addCommand(Server::get(AddMissingColumns::class));
181+
$application->addCommand(Server::get(AddMissingIndices::class));
182+
$application->addCommand(Server::get(AddMissingPrimaryKeys::class));
183+
$application->addCommand(Server::get(DbInfo::class));
184+
$application->addCommand(Server::get(DbSize::class));
185+
$application->addCommand(Server::get(DbIndexUsage::class));
186+
$application->addCommand(Server::get(DbLocks::class));
187+
$application->addCommand(Server::get(ExpectedSchema::class));
188+
$application->addCommand(Server::get(ExportSchema::class));
189189

190-
$application->add(Server::get(GenerateMetadataCommand::class));
191-
$application->add(Server::get(PreviewCommand::class));
190+
$application->addCommand(Server::get(GenerateMetadataCommand::class));
191+
$application->addCommand(Server::get(PreviewCommand::class));
192192
if ($config->getSystemValueBool('debug', false)) {
193-
$application->add(Server::get(StatusCommand::class));
194-
$application->add(Server::get(MigrateCommand::class));
195-
$application->add(Server::get(GenerateCommand::class));
196-
$application->add(Server::get(ExecuteCommand::class));
193+
$application->addCommand(Server::get(StatusCommand::class));
194+
$application->addCommand(Server::get(MigrateCommand::class));
195+
$application->addCommand(Server::get(GenerateCommand::class));
196+
$application->addCommand(Server::get(ExecuteCommand::class));
197197
}
198198

199-
$application->add(Server::get(Command\Encryption\Disable::class));
200-
$application->add(Server::get(Command\Encryption\Enable::class));
201-
$application->add(Server::get(ListModules::class));
202-
$application->add(Server::get(SetDefaultModule::class));
203-
$application->add(Server::get(Command\Encryption\Status::class));
204-
$application->add(Server::get(EncryptAll::class));
205-
$application->add(Server::get(DecryptAll::class));
199+
$application->addCommand(Server::get(Command\Encryption\Disable::class));
200+
$application->addCommand(Server::get(Command\Encryption\Enable::class));
201+
$application->addCommand(Server::get(ListModules::class));
202+
$application->addCommand(Server::get(SetDefaultModule::class));
203+
$application->addCommand(Server::get(Command\Encryption\Status::class));
204+
$application->addCommand(Server::get(EncryptAll::class));
205+
$application->addCommand(Server::get(DecryptAll::class));
206206

207-
$application->add(Server::get(Manage::class));
208-
$application->add(Server::get(Command\Log\File::class));
207+
$application->addCommand(Server::get(Manage::class));
208+
$application->addCommand(Server::get(Command\Log\File::class));
209209

210-
$application->add(Server::get(ChangeKeyStorageRoot::class));
211-
$application->add(Server::get(ShowKeyStorageRoot::class));
212-
$application->add(Server::get(MigrateKeyStorage::class));
210+
$application->addCommand(Server::get(ChangeKeyStorageRoot::class));
211+
$application->addCommand(Server::get(ShowKeyStorageRoot::class));
212+
$application->addCommand(Server::get(MigrateKeyStorage::class));
213213

214-
$application->add(Server::get(DataFingerprint::class));
215-
$application->add(Server::get(UpdateDB::class));
216-
$application->add(Server::get(UpdateJS::class));
217-
$application->add(Server::get(Command\Maintenance\Mode::class));
218-
$application->add(Server::get(UpdateHtaccess::class));
219-
$application->add(Server::get(UpdateTheme::class));
214+
$application->addCommand(Server::get(DataFingerprint::class));
215+
$application->addCommand(Server::get(UpdateDB::class));
216+
$application->addCommand(Server::get(UpdateJS::class));
217+
$application->addCommand(Server::get(Command\Maintenance\Mode::class));
218+
$application->addCommand(Server::get(UpdateHtaccess::class));
219+
$application->addCommand(Server::get(UpdateTheme::class));
220220

221-
$application->add(Server::get(Upgrade::class));
222-
$application->add(Server::get(Repair::class));
223-
$application->add(Server::get(RepairShareOwnership::class));
221+
$application->addCommand(Server::get(Upgrade::class));
222+
$application->addCommand(Server::get(Repair::class));
223+
$application->addCommand(Server::get(RepairShareOwnership::class));
224224

225-
$application->add(Server::get(Command\Preview\Cleanup::class));
226-
$application->add(Server::get(Generate::class));
227-
$application->add(Server::get(ResetRenderedTexts::class));
225+
$application->addCommand(Server::get(Command\Preview\Cleanup::class));
226+
$application->addCommand(Server::get(Generate::class));
227+
$application->addCommand(Server::get(ResetRenderedTexts::class));
228228

229-
$application->add(Server::get(Add::class));
230-
$application->add(Server::get(Command\User\Delete::class));
231-
$application->add(Server::get(Command\User\Disable::class));
232-
$application->add(Server::get(Command\User\Enable::class));
233-
$application->add(Server::get(LastSeen::class));
234-
$application->add(Server::get(Report::class));
235-
$application->add(Server::get(ResetPassword::class));
236-
$application->add(Server::get(Setting::class));
237-
$application->add(Server::get(Profile::class));
238-
$application->add(Server::get(Command\User\ListCommand::class));
239-
$application->add(Server::get(ClearGeneratedAvatarCacheCommand::class));
240-
$application->add(Server::get(Info::class));
241-
$application->add(Server::get(SyncAccountDataCommand::class));
242-
$application->add(Server::get(Command\User\AuthTokens\Add::class));
243-
$application->add(Server::get(Command\User\AuthTokens\ListCommand::class));
244-
$application->add(Server::get(Command\User\AuthTokens\Delete::class));
245-
$application->add(Server::get(Verify::class));
246-
$application->add(Server::get(Welcome::class));
229+
$application->addCommand(Server::get(Add::class));
230+
$application->addCommand(Server::get(Command\User\Delete::class));
231+
$application->addCommand(Server::get(Command\User\Disable::class));
232+
$application->addCommand(Server::get(Command\User\Enable::class));
233+
$application->addCommand(Server::get(LastSeen::class));
234+
$application->addCommand(Server::get(Report::class));
235+
$application->addCommand(Server::get(ResetPassword::class));
236+
$application->addCommand(Server::get(Setting::class));
237+
$application->addCommand(Server::get(Profile::class));
238+
$application->addCommand(Server::get(Command\User\ListCommand::class));
239+
$application->addCommand(Server::get(ClearGeneratedAvatarCacheCommand::class));
240+
$application->addCommand(Server::get(Info::class));
241+
$application->addCommand(Server::get(SyncAccountDataCommand::class));
242+
$application->addCommand(Server::get(Command\User\AuthTokens\Add::class));
243+
$application->addCommand(Server::get(Command\User\AuthTokens\ListCommand::class));
244+
$application->addCommand(Server::get(Command\User\AuthTokens\Delete::class));
245+
$application->addCommand(Server::get(Verify::class));
246+
$application->addCommand(Server::get(Welcome::class));
247247

248-
$application->add(Server::get(Command\Group\Add::class));
249-
$application->add(Server::get(Command\Group\Delete::class));
250-
$application->add(Server::get(Command\Group\ListCommand::class));
251-
$application->add(Server::get(AddUser::class));
252-
$application->add(Server::get(RemoveUser::class));
253-
$application->add(Server::get(Command\Group\Info::class));
248+
$application->addCommand(Server::get(Command\Group\Add::class));
249+
$application->addCommand(Server::get(Command\Group\Delete::class));
250+
$application->addCommand(Server::get(Command\Group\ListCommand::class));
251+
$application->addCommand(Server::get(AddUser::class));
252+
$application->addCommand(Server::get(RemoveUser::class));
253+
$application->addCommand(Server::get(Command\Group\Info::class));
254254

255-
$application->add(Server::get(Command\SystemTag\ListCommand::class));
256-
$application->add(Server::get(Command\SystemTag\Delete::class));
257-
$application->add(Server::get(Command\SystemTag\Add::class));
258-
$application->add(Server::get(Edit::class));
255+
$application->addCommand(Server::get(Command\SystemTag\ListCommand::class));
256+
$application->addCommand(Server::get(Command\SystemTag\Delete::class));
257+
$application->addCommand(Server::get(Command\SystemTag\Add::class));
258+
$application->addCommand(Server::get(Edit::class));
259259

260-
$application->add(Server::get(ListCertificates::class));
261-
$application->add(Server::get(ExportCertificates::class));
262-
$application->add(Server::get(ImportCertificate::class));
263-
$application->add(Server::get(RemoveCertificate::class));
264-
$application->add(Server::get(BruteforceAttempts::class));
265-
$application->add(Server::get(BruteforceResetAttempts::class));
266-
$application->add(Server::get(SetupChecks::class));
267-
$application->add(Server::get(SnowflakeDecodeId::class));
268-
$application->add(Server::get(Get::class));
260+
$application->addCommand(Server::get(ListCertificates::class));
261+
$application->addCommand(Server::get(ExportCertificates::class));
262+
$application->addCommand(Server::get(ImportCertificate::class));
263+
$application->addCommand(Server::get(RemoveCertificate::class));
264+
$application->addCommand(Server::get(BruteforceAttempts::class));
265+
$application->addCommand(Server::get(BruteforceResetAttempts::class));
266+
$application->addCommand(Server::get(SetupChecks::class));
267+
$application->addCommand(Server::get(SnowflakeDecodeId::class));
268+
$application->addCommand(Server::get(Get::class));
269269

270-
$application->add(Server::get(OCMListKeys::class));
271-
$application->add(Server::get(OCMStageKey::class));
272-
$application->add(Server::get(OCMActivateKey::class));
273-
$application->add(Server::get(OCMRetireKey::class));
270+
$application->addCommand(Server::get(OCMListKeys::class));
271+
$application->addCommand(Server::get(OCMStageKey::class));
272+
$application->addCommand(Server::get(OCMActivateKey::class));
273+
$application->addCommand(Server::get(OCMRetireKey::class));
274274

275-
$application->add(Server::get(GetCommand::class));
276-
$application->add(Server::get(EnabledCommand::class));
277-
$application->add(Server::get(Command\TaskProcessing\ListCommand::class));
278-
$application->add(Server::get(Statistics::class));
279-
$application->add(Server::get(Command\TaskProcessing\Cleanup::class));
280-
$application->add(Server::get(WorkerCommand::class));
275+
$application->addCommand(Server::get(GetCommand::class));
276+
$application->addCommand(Server::get(EnabledCommand::class));
277+
$application->addCommand(Server::get(Command\TaskProcessing\ListCommand::class));
278+
$application->addCommand(Server::get(Statistics::class));
279+
$application->addCommand(Server::get(Command\TaskProcessing\Cleanup::class));
280+
$application->addCommand(Server::get(WorkerCommand::class));
281281

282-
$application->add(Server::get(RedisCommand::class));
283-
$application->add(Server::get(DistributedClear::class));
284-
$application->add(Server::get(DistributedDelete::class));
285-
$application->add(Server::get(DistributedGet::class));
286-
$application->add(Server::get(DistributedSet::class));
282+
$application->addCommand(Server::get(RedisCommand::class));
283+
$application->addCommand(Server::get(DistributedClear::class));
284+
$application->addCommand(Server::get(DistributedDelete::class));
285+
$application->addCommand(Server::get(DistributedGet::class));
286+
$application->addCommand(Server::get(DistributedSet::class));
287287
} else {
288-
$application->add(Server::get(Command\Maintenance\Install::class));
288+
$application->addCommand(Server::get(Command\Maintenance\Install::class));
289289
}

lib/private/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function loadCommandsFromInfoXml(iterable $commands): void {
229229
}
230230
}
231231

232-
$this->application->add($c);
232+
$this->application->addCommand($c);
233233
}
234234
}
235235
}

0 commit comments

Comments
 (0)