@@ -95,160 +95,160 @@ |
||
| 95 | 95 | use OCP\Util; |
| 96 | 96 | |
| 97 | 97 | class Application extends App implements IBootstrap { |
| 98 | - public const APP_ID = 'settings'; |
|
| 99 | - |
|
| 100 | - /** |
|
| 101 | - * @param array $urlParams |
|
| 102 | - */ |
|
| 103 | - public function __construct(array $urlParams = []) { |
|
| 104 | - parent::__construct(self::APP_ID, $urlParams); |
|
| 105 | - } |
|
| 106 | - |
|
| 107 | - public function register(IRegistrationContext $context): void { |
|
| 108 | - // Register Middleware |
|
| 109 | - $context->registerServiceAlias('SubadminMiddleware', SubadminMiddleware::class); |
|
| 110 | - $context->registerMiddleware(SubadminMiddleware::class); |
|
| 111 | - $context->registerSearchProvider(SectionSearch::class); |
|
| 112 | - $context->registerSearchProvider(AppSearch::class); |
|
| 113 | - $context->registerSearchProvider(UserSearch::class); |
|
| 114 | - |
|
| 115 | - // Register listeners |
|
| 116 | - $context->registerEventListener(AppPasswordCreatedEvent::class, AppPasswordCreatedActivityListener::class); |
|
| 117 | - $context->registerEventListener(UserAddedEvent::class, UserAddedToGroupActivityListener::class); |
|
| 118 | - $context->registerEventListener(UserRemovedEvent::class, UserRemovedFromGroupActivityListener::class); |
|
| 119 | - $context->registerEventListener(GroupDeletedEvent::class, GroupRemovedListener::class); |
|
| 120 | - |
|
| 121 | - // Register Mail Provider listeners |
|
| 122 | - $context->registerEventListener(DeclarativeSettingsGetValueEvent::class, MailProviderListener::class); |
|
| 123 | - $context->registerEventListener(DeclarativeSettingsSetValueEvent::class, MailProviderListener::class); |
|
| 124 | - |
|
| 125 | - // Register well-known handlers |
|
| 126 | - $context->registerWellKnownHandler(SecurityTxtHandler::class); |
|
| 127 | - $context->registerWellKnownHandler(ChangePasswordHandler::class); |
|
| 128 | - |
|
| 129 | - // Register Settings Form(s) |
|
| 130 | - $context->registerDeclarativeSettings(MailProvider::class); |
|
| 131 | - |
|
| 132 | - /** |
|
| 133 | - * Core class wrappers |
|
| 134 | - */ |
|
| 135 | - $context->registerService(IProvider::class, function (IAppContainer $appContainer) { |
|
| 136 | - /** @var IServerContainer $serverContainer */ |
|
| 137 | - $serverContainer = $appContainer->query(IServerContainer::class); |
|
| 138 | - return $serverContainer->query(IProvider::class); |
|
| 139 | - }); |
|
| 140 | - $context->registerService(IManager::class, function (IAppContainer $appContainer) { |
|
| 141 | - /** @var IServerContainer $serverContainer */ |
|
| 142 | - $serverContainer = $appContainer->query(IServerContainer::class); |
|
| 143 | - return $serverContainer->getSettingsManager(); |
|
| 144 | - }); |
|
| 145 | - |
|
| 146 | - $context->registerService(NewUserMailHelper::class, function (IAppContainer $appContainer) { |
|
| 147 | - /** @var Server $server */ |
|
| 148 | - $server = $appContainer->query(IServerContainer::class); |
|
| 149 | - /** @var Defaults $defaults */ |
|
| 150 | - $defaults = $server->query(Defaults::class); |
|
| 151 | - |
|
| 152 | - return new NewUserMailHelper( |
|
| 153 | - $defaults, |
|
| 154 | - $server->getURLGenerator(), |
|
| 155 | - $server->getL10NFactory(), |
|
| 156 | - $server->getMailer(), |
|
| 157 | - $server->getSecureRandom(), |
|
| 158 | - new TimeFactory(), |
|
| 159 | - $server->getConfig(), |
|
| 160 | - $server->getCrypto(), |
|
| 161 | - Util::getDefaultEmailAddress('no-reply') |
|
| 162 | - ); |
|
| 163 | - }); |
|
| 164 | - $context->registerSetupCheck(AllowedAdminRanges::class); |
|
| 165 | - $context->registerSetupCheck(AppDirsWithDifferentOwner::class); |
|
| 166 | - $context->registerSetupCheck(BruteForceThrottler::class); |
|
| 167 | - $context->registerSetupCheck(CheckUserCertificates::class); |
|
| 168 | - $context->registerSetupCheck(CodeIntegrity::class); |
|
| 169 | - $context->registerSetupCheck(CronErrors::class); |
|
| 170 | - $context->registerSetupCheck(CronInfo::class); |
|
| 171 | - $context->registerSetupCheck(DatabaseHasMissingColumns::class); |
|
| 172 | - $context->registerSetupCheck(DatabaseHasMissingIndices::class); |
|
| 173 | - $context->registerSetupCheck(DatabaseHasMissingPrimaryKeys::class); |
|
| 174 | - $context->registerSetupCheck(DatabasePendingBigIntConversions::class); |
|
| 175 | - $context->registerSetupCheck(DataDirectoryProtected::class); |
|
| 176 | - $context->registerSetupCheck(DebugMode::class); |
|
| 177 | - $context->registerSetupCheck(DefaultPhoneRegionSet::class); |
|
| 178 | - $context->registerSetupCheck(EmailTestSuccessful::class); |
|
| 179 | - $context->registerSetupCheck(FileLocking::class); |
|
| 180 | - $context->registerSetupCheck(ForwardedForHeaders::class); |
|
| 181 | - $context->registerSetupCheck(HttpsUrlGeneration::class); |
|
| 182 | - $context->registerSetupCheck(InternetConnectivity::class); |
|
| 183 | - $context->registerSetupCheck(JavaScriptSourceMaps::class); |
|
| 184 | - $context->registerSetupCheck(JavaScriptModules::class); |
|
| 185 | - $context->registerSetupCheck(LegacySSEKeyFormat::class); |
|
| 186 | - $context->registerSetupCheck(MaintenanceWindowStart::class); |
|
| 187 | - $context->registerSetupCheck(MemcacheConfigured::class); |
|
| 188 | - $context->registerSetupCheck(MimeTypeMigrationAvailable::class); |
|
| 189 | - $context->registerSetupCheck(MysqlRowFormat::class); |
|
| 190 | - $context->registerSetupCheck(MysqlUnicodeSupport::class); |
|
| 191 | - $context->registerSetupCheck(OcxProviders::class); |
|
| 192 | - $context->registerSetupCheck(OverwriteCliUrl::class); |
|
| 193 | - $context->registerSetupCheck(PhpDefaultCharset::class); |
|
| 194 | - $context->registerSetupCheck(PhpDisabledFunctions::class); |
|
| 195 | - $context->registerSetupCheck(PhpFreetypeSupport::class); |
|
| 196 | - $context->registerSetupCheck(PhpApcuConfig::class); |
|
| 197 | - $context->registerSetupCheck(PhpGetEnv::class); |
|
| 198 | - // Temporarily disabled $context->registerSetupCheck(PhpMaxFileSize::class); |
|
| 199 | - $context->registerSetupCheck(PhpMemoryLimit::class); |
|
| 200 | - $context->registerSetupCheck(PhpModules::class); |
|
| 201 | - $context->registerSetupCheck(PhpOpcacheSetup::class); |
|
| 202 | - $context->registerSetupCheck(PhpOutdated::class); |
|
| 203 | - $context->registerSetupCheck(PhpOutputBuffering::class); |
|
| 204 | - $context->registerSetupCheck(RandomnessSecure::class); |
|
| 205 | - $context->registerSetupCheck(ReadOnlyConfig::class); |
|
| 206 | - $context->registerSetupCheck(SecurityHeaders::class); |
|
| 207 | - $context->registerSetupCheck(SchedulingTableSize::class); |
|
| 208 | - $context->registerSetupCheck(SupportedDatabase::class); |
|
| 209 | - $context->registerSetupCheck(SystemIs64bit::class); |
|
| 210 | - $context->registerSetupCheck(TaskProcessingPickupSpeed::class); |
|
| 211 | - $context->registerSetupCheck(TempSpaceAvailable::class); |
|
| 212 | - $context->registerSetupCheck(TransactionIsolation::class); |
|
| 213 | - $context->registerSetupCheck(PushService::class); |
|
| 214 | - $context->registerSetupCheck(WellKnownUrls::class); |
|
| 215 | - $context->registerSetupCheck(Woff2Loading::class); |
|
| 216 | - |
|
| 217 | - $context->registerUserMigrator(AccountMigrator::class); |
|
| 218 | - } |
|
| 219 | - |
|
| 220 | - public function boot(IBootContext $context): void { |
|
| 221 | - Util::connectHook('OC_User', 'post_setPassword', $this, 'onChangePassword'); |
|
| 222 | - Util::connectHook('OC_User', 'changeUser', $this, 'onChangeInfo'); |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - /** |
|
| 226 | - * @param array $parameters |
|
| 227 | - * @throws \InvalidArgumentException |
|
| 228 | - * @throws \BadMethodCallException |
|
| 229 | - * @throws \Exception |
|
| 230 | - * @throws QueryException |
|
| 231 | - */ |
|
| 232 | - public function onChangePassword(array $parameters) { |
|
| 233 | - /** @var Hooks $hooks */ |
|
| 234 | - $hooks = $this->getContainer()->query(Hooks::class); |
|
| 235 | - $hooks->onChangePassword($parameters['uid']); |
|
| 236 | - } |
|
| 237 | - |
|
| 238 | - /** |
|
| 239 | - * @param array $parameters |
|
| 240 | - * @throws \InvalidArgumentException |
|
| 241 | - * @throws \BadMethodCallException |
|
| 242 | - * @throws \Exception |
|
| 243 | - * @throws QueryException |
|
| 244 | - */ |
|
| 245 | - public function onChangeInfo(array $parameters) { |
|
| 246 | - if ($parameters['feature'] !== 'eMailAddress') { |
|
| 247 | - return; |
|
| 248 | - } |
|
| 249 | - |
|
| 250 | - /** @var Hooks $hooks */ |
|
| 251 | - $hooks = $this->getContainer()->query(Hooks::class); |
|
| 252 | - $hooks->onChangeEmail($parameters['user'], $parameters['old_value']); |
|
| 253 | - } |
|
| 98 | + public const APP_ID = 'settings'; |
|
| 99 | + |
|
| 100 | + /** |
|
| 101 | + * @param array $urlParams |
|
| 102 | + */ |
|
| 103 | + public function __construct(array $urlParams = []) { |
|
| 104 | + parent::__construct(self::APP_ID, $urlParams); |
|
| 105 | + } |
|
| 106 | + |
|
| 107 | + public function register(IRegistrationContext $context): void { |
|
| 108 | + // Register Middleware |
|
| 109 | + $context->registerServiceAlias('SubadminMiddleware', SubadminMiddleware::class); |
|
| 110 | + $context->registerMiddleware(SubadminMiddleware::class); |
|
| 111 | + $context->registerSearchProvider(SectionSearch::class); |
|
| 112 | + $context->registerSearchProvider(AppSearch::class); |
|
| 113 | + $context->registerSearchProvider(UserSearch::class); |
|
| 114 | + |
|
| 115 | + // Register listeners |
|
| 116 | + $context->registerEventListener(AppPasswordCreatedEvent::class, AppPasswordCreatedActivityListener::class); |
|
| 117 | + $context->registerEventListener(UserAddedEvent::class, UserAddedToGroupActivityListener::class); |
|
| 118 | + $context->registerEventListener(UserRemovedEvent::class, UserRemovedFromGroupActivityListener::class); |
|
| 119 | + $context->registerEventListener(GroupDeletedEvent::class, GroupRemovedListener::class); |
|
| 120 | + |
|
| 121 | + // Register Mail Provider listeners |
|
| 122 | + $context->registerEventListener(DeclarativeSettingsGetValueEvent::class, MailProviderListener::class); |
|
| 123 | + $context->registerEventListener(DeclarativeSettingsSetValueEvent::class, MailProviderListener::class); |
|
| 124 | + |
|
| 125 | + // Register well-known handlers |
|
| 126 | + $context->registerWellKnownHandler(SecurityTxtHandler::class); |
|
| 127 | + $context->registerWellKnownHandler(ChangePasswordHandler::class); |
|
| 128 | + |
|
| 129 | + // Register Settings Form(s) |
|
| 130 | + $context->registerDeclarativeSettings(MailProvider::class); |
|
| 131 | + |
|
| 132 | + /** |
|
| 133 | + * Core class wrappers |
|
| 134 | + */ |
|
| 135 | + $context->registerService(IProvider::class, function (IAppContainer $appContainer) { |
|
| 136 | + /** @var IServerContainer $serverContainer */ |
|
| 137 | + $serverContainer = $appContainer->query(IServerContainer::class); |
|
| 138 | + return $serverContainer->query(IProvider::class); |
|
| 139 | + }); |
|
| 140 | + $context->registerService(IManager::class, function (IAppContainer $appContainer) { |
|
| 141 | + /** @var IServerContainer $serverContainer */ |
|
| 142 | + $serverContainer = $appContainer->query(IServerContainer::class); |
|
| 143 | + return $serverContainer->getSettingsManager(); |
|
| 144 | + }); |
|
| 145 | + |
|
| 146 | + $context->registerService(NewUserMailHelper::class, function (IAppContainer $appContainer) { |
|
| 147 | + /** @var Server $server */ |
|
| 148 | + $server = $appContainer->query(IServerContainer::class); |
|
| 149 | + /** @var Defaults $defaults */ |
|
| 150 | + $defaults = $server->query(Defaults::class); |
|
| 151 | + |
|
| 152 | + return new NewUserMailHelper( |
|
| 153 | + $defaults, |
|
| 154 | + $server->getURLGenerator(), |
|
| 155 | + $server->getL10NFactory(), |
|
| 156 | + $server->getMailer(), |
|
| 157 | + $server->getSecureRandom(), |
|
| 158 | + new TimeFactory(), |
|
| 159 | + $server->getConfig(), |
|
| 160 | + $server->getCrypto(), |
|
| 161 | + Util::getDefaultEmailAddress('no-reply') |
|
| 162 | + ); |
|
| 163 | + }); |
|
| 164 | + $context->registerSetupCheck(AllowedAdminRanges::class); |
|
| 165 | + $context->registerSetupCheck(AppDirsWithDifferentOwner::class); |
|
| 166 | + $context->registerSetupCheck(BruteForceThrottler::class); |
|
| 167 | + $context->registerSetupCheck(CheckUserCertificates::class); |
|
| 168 | + $context->registerSetupCheck(CodeIntegrity::class); |
|
| 169 | + $context->registerSetupCheck(CronErrors::class); |
|
| 170 | + $context->registerSetupCheck(CronInfo::class); |
|
| 171 | + $context->registerSetupCheck(DatabaseHasMissingColumns::class); |
|
| 172 | + $context->registerSetupCheck(DatabaseHasMissingIndices::class); |
|
| 173 | + $context->registerSetupCheck(DatabaseHasMissingPrimaryKeys::class); |
|
| 174 | + $context->registerSetupCheck(DatabasePendingBigIntConversions::class); |
|
| 175 | + $context->registerSetupCheck(DataDirectoryProtected::class); |
|
| 176 | + $context->registerSetupCheck(DebugMode::class); |
|
| 177 | + $context->registerSetupCheck(DefaultPhoneRegionSet::class); |
|
| 178 | + $context->registerSetupCheck(EmailTestSuccessful::class); |
|
| 179 | + $context->registerSetupCheck(FileLocking::class); |
|
| 180 | + $context->registerSetupCheck(ForwardedForHeaders::class); |
|
| 181 | + $context->registerSetupCheck(HttpsUrlGeneration::class); |
|
| 182 | + $context->registerSetupCheck(InternetConnectivity::class); |
|
| 183 | + $context->registerSetupCheck(JavaScriptSourceMaps::class); |
|
| 184 | + $context->registerSetupCheck(JavaScriptModules::class); |
|
| 185 | + $context->registerSetupCheck(LegacySSEKeyFormat::class); |
|
| 186 | + $context->registerSetupCheck(MaintenanceWindowStart::class); |
|
| 187 | + $context->registerSetupCheck(MemcacheConfigured::class); |
|
| 188 | + $context->registerSetupCheck(MimeTypeMigrationAvailable::class); |
|
| 189 | + $context->registerSetupCheck(MysqlRowFormat::class); |
|
| 190 | + $context->registerSetupCheck(MysqlUnicodeSupport::class); |
|
| 191 | + $context->registerSetupCheck(OcxProviders::class); |
|
| 192 | + $context->registerSetupCheck(OverwriteCliUrl::class); |
|
| 193 | + $context->registerSetupCheck(PhpDefaultCharset::class); |
|
| 194 | + $context->registerSetupCheck(PhpDisabledFunctions::class); |
|
| 195 | + $context->registerSetupCheck(PhpFreetypeSupport::class); |
|
| 196 | + $context->registerSetupCheck(PhpApcuConfig::class); |
|
| 197 | + $context->registerSetupCheck(PhpGetEnv::class); |
|
| 198 | + // Temporarily disabled $context->registerSetupCheck(PhpMaxFileSize::class); |
|
| 199 | + $context->registerSetupCheck(PhpMemoryLimit::class); |
|
| 200 | + $context->registerSetupCheck(PhpModules::class); |
|
| 201 | + $context->registerSetupCheck(PhpOpcacheSetup::class); |
|
| 202 | + $context->registerSetupCheck(PhpOutdated::class); |
|
| 203 | + $context->registerSetupCheck(PhpOutputBuffering::class); |
|
| 204 | + $context->registerSetupCheck(RandomnessSecure::class); |
|
| 205 | + $context->registerSetupCheck(ReadOnlyConfig::class); |
|
| 206 | + $context->registerSetupCheck(SecurityHeaders::class); |
|
| 207 | + $context->registerSetupCheck(SchedulingTableSize::class); |
|
| 208 | + $context->registerSetupCheck(SupportedDatabase::class); |
|
| 209 | + $context->registerSetupCheck(SystemIs64bit::class); |
|
| 210 | + $context->registerSetupCheck(TaskProcessingPickupSpeed::class); |
|
| 211 | + $context->registerSetupCheck(TempSpaceAvailable::class); |
|
| 212 | + $context->registerSetupCheck(TransactionIsolation::class); |
|
| 213 | + $context->registerSetupCheck(PushService::class); |
|
| 214 | + $context->registerSetupCheck(WellKnownUrls::class); |
|
| 215 | + $context->registerSetupCheck(Woff2Loading::class); |
|
| 216 | + |
|
| 217 | + $context->registerUserMigrator(AccountMigrator::class); |
|
| 218 | + } |
|
| 219 | + |
|
| 220 | + public function boot(IBootContext $context): void { |
|
| 221 | + Util::connectHook('OC_User', 'post_setPassword', $this, 'onChangePassword'); |
|
| 222 | + Util::connectHook('OC_User', 'changeUser', $this, 'onChangeInfo'); |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + /** |
|
| 226 | + * @param array $parameters |
|
| 227 | + * @throws \InvalidArgumentException |
|
| 228 | + * @throws \BadMethodCallException |
|
| 229 | + * @throws \Exception |
|
| 230 | + * @throws QueryException |
|
| 231 | + */ |
|
| 232 | + public function onChangePassword(array $parameters) { |
|
| 233 | + /** @var Hooks $hooks */ |
|
| 234 | + $hooks = $this->getContainer()->query(Hooks::class); |
|
| 235 | + $hooks->onChangePassword($parameters['uid']); |
|
| 236 | + } |
|
| 237 | + |
|
| 238 | + /** |
|
| 239 | + * @param array $parameters |
|
| 240 | + * @throws \InvalidArgumentException |
|
| 241 | + * @throws \BadMethodCallException |
|
| 242 | + * @throws \Exception |
|
| 243 | + * @throws QueryException |
|
| 244 | + */ |
|
| 245 | + public function onChangeInfo(array $parameters) { |
|
| 246 | + if ($parameters['feature'] !== 'eMailAddress') { |
|
| 247 | + return; |
|
| 248 | + } |
|
| 249 | + |
|
| 250 | + /** @var Hooks $hooks */ |
|
| 251 | + $hooks = $this->getContainer()->query(Hooks::class); |
|
| 252 | + $hooks->onChangeEmail($parameters['user'], $parameters['old_value']); |
|
| 253 | + } |
|
| 254 | 254 | } |
@@ -16,48 +16,48 @@ |
||
| 16 | 16 | use OCP\TaskProcessing\IManager; |
| 17 | 17 | |
| 18 | 18 | class TaskProcessingPickupSpeed implements ISetupCheck { |
| 19 | - public const MAX_SLOW_PERCENTAGE = 0.2; |
|
| 20 | - public const TIME_SPAN = 24; |
|
| 21 | - |
|
| 22 | - public function __construct( |
|
| 23 | - private IL10N $l10n, |
|
| 24 | - private IManager $taskProcessingManager, |
|
| 25 | - private ITimeFactory $timeFactory, |
|
| 26 | - ) { |
|
| 27 | - } |
|
| 28 | - |
|
| 29 | - public function getCategory(): string { |
|
| 30 | - return 'ai'; |
|
| 31 | - } |
|
| 32 | - |
|
| 33 | - public function getName(): string { |
|
| 34 | - return $this->l10n->t('Task Processing pickup speed'); |
|
| 35 | - } |
|
| 36 | - |
|
| 37 | - public function run(): SetupResult { |
|
| 38 | - $tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - 60 * 60 * self::TIME_SPAN); // userId: '' means no filter, whereas null would mean guest |
|
| 39 | - $taskCount = count($tasks); |
|
| 40 | - if ($taskCount === 0) { |
|
| 41 | - return SetupResult::success($this->l10n->t('No scheduled tasks in the last {hours} hours.', ['hours' => self::TIME_SPAN])); |
|
| 42 | - } |
|
| 43 | - $slowCount = 0; |
|
| 44 | - foreach ($tasks as $task) { |
|
| 45 | - if ($task->getStartedAt() === null) { |
|
| 46 | - continue; // task was not picked up yet |
|
| 47 | - } |
|
| 48 | - if ($task->getScheduledAt() === null) { |
|
| 49 | - continue; // task was not scheduled yet -- should not happen, but the API specifies null as return value |
|
| 50 | - } |
|
| 51 | - $pickupDelay = $task->getScheduledAt() - $task->getStartedAt(); |
|
| 52 | - if ($pickupDelay > 60 * 4) { |
|
| 53 | - $slowCount++; // task pickup took longer than 4 minutes |
|
| 54 | - } |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - if ($slowCount / $taskCount < self::MAX_SLOW_PERCENTAGE) { |
|
| 58 | - return SetupResult::success($this->l10n->t('Task pickup speed is ok in the last {hours} hours.', ['hours' => self::TIME_SPAN])); |
|
| 59 | - } else { |
|
| 60 | - return SetupResult::warning($this->l10n->t('Task pickup speed is slow in the last {hours} hours. Many tasks took longer than 4 min to get picked up. Consider setting up a worker to process tasks in the background.', ['hours' => self::TIME_SPAN]), 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed'); |
|
| 61 | - } |
|
| 62 | - } |
|
| 19 | + public const MAX_SLOW_PERCENTAGE = 0.2; |
|
| 20 | + public const TIME_SPAN = 24; |
|
| 21 | + |
|
| 22 | + public function __construct( |
|
| 23 | + private IL10N $l10n, |
|
| 24 | + private IManager $taskProcessingManager, |
|
| 25 | + private ITimeFactory $timeFactory, |
|
| 26 | + ) { |
|
| 27 | + } |
|
| 28 | + |
|
| 29 | + public function getCategory(): string { |
|
| 30 | + return 'ai'; |
|
| 31 | + } |
|
| 32 | + |
|
| 33 | + public function getName(): string { |
|
| 34 | + return $this->l10n->t('Task Processing pickup speed'); |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + public function run(): SetupResult { |
|
| 38 | + $tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - 60 * 60 * self::TIME_SPAN); // userId: '' means no filter, whereas null would mean guest |
|
| 39 | + $taskCount = count($tasks); |
|
| 40 | + if ($taskCount === 0) { |
|
| 41 | + return SetupResult::success($this->l10n->t('No scheduled tasks in the last {hours} hours.', ['hours' => self::TIME_SPAN])); |
|
| 42 | + } |
|
| 43 | + $slowCount = 0; |
|
| 44 | + foreach ($tasks as $task) { |
|
| 45 | + if ($task->getStartedAt() === null) { |
|
| 46 | + continue; // task was not picked up yet |
|
| 47 | + } |
|
| 48 | + if ($task->getScheduledAt() === null) { |
|
| 49 | + continue; // task was not scheduled yet -- should not happen, but the API specifies null as return value |
|
| 50 | + } |
|
| 51 | + $pickupDelay = $task->getScheduledAt() - $task->getStartedAt(); |
|
| 52 | + if ($pickupDelay > 60 * 4) { |
|
| 53 | + $slowCount++; // task pickup took longer than 4 minutes |
|
| 54 | + } |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + if ($slowCount / $taskCount < self::MAX_SLOW_PERCENTAGE) { |
|
| 58 | + return SetupResult::success($this->l10n->t('Task pickup speed is ok in the last {hours} hours.', ['hours' => self::TIME_SPAN])); |
|
| 59 | + } else { |
|
| 60 | + return SetupResult::warning($this->l10n->t('Task pickup speed is slow in the last {hours} hours. Many tasks took longer than 4 min to get picked up. Consider setting up a worker to process tasks in the background.', ['hours' => self::TIME_SPAN]), 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed'); |
|
| 61 | + } |
|
| 62 | + } |
|
| 63 | 63 | } |
@@ -6,158 +6,158 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitSettings |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Settings\\' => 13, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Settings\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\Settings\\Activity\\GroupProvider' => __DIR__ . '/..' . '/../lib/Activity/GroupProvider.php', |
|
| 26 | - 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__ . '/..' . '/../lib/Activity/GroupSetting.php', |
|
| 27 | - 'OCA\\Settings\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 28 | - 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__ . '/..' . '/../lib/Activity/SecurityFilter.php', |
|
| 29 | - 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__ . '/..' . '/../lib/Activity/SecurityProvider.php', |
|
| 30 | - 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__ . '/..' . '/../lib/Activity/SecuritySetting.php', |
|
| 31 | - 'OCA\\Settings\\Activity\\Setting' => __DIR__ . '/..' . '/../lib/Activity/Setting.php', |
|
| 32 | - 'OCA\\Settings\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 33 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__ . '/..' . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 34 | - 'OCA\\Settings\\Command\\AdminDelegation\\Add' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Add.php', |
|
| 35 | - 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Remove.php', |
|
| 36 | - 'OCA\\Settings\\Command\\AdminDelegation\\Show' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Show.php', |
|
| 37 | - 'OCA\\Settings\\Controller\\AISettingsController' => __DIR__ . '/..' . '/../lib/Controller/AISettingsController.php', |
|
| 38 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AdminSettingsController.php', |
|
| 39 | - 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AppSettingsController.php', |
|
| 40 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AuthSettingsController.php', |
|
| 41 | - 'OCA\\Settings\\Controller\\AuthorizedGroupController' => __DIR__ . '/..' . '/../lib/Controller/AuthorizedGroupController.php', |
|
| 42 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__ . '/..' . '/../lib/Controller/ChangePasswordController.php', |
|
| 43 | - 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__ . '/..' . '/../lib/Controller/CheckSetupController.php', |
|
| 44 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__ . '/..' . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 45 | - 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => __DIR__ . '/..' . '/../lib/Controller/DeclarativeSettingsController.php', |
|
| 46 | - 'OCA\\Settings\\Controller\\HelpController' => __DIR__ . '/..' . '/../lib/Controller/HelpController.php', |
|
| 47 | - 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__ . '/..' . '/../lib/Controller/LogSettingsController.php', |
|
| 48 | - 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__ . '/..' . '/../lib/Controller/MailSettingsController.php', |
|
| 49 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__ . '/..' . '/../lib/Controller/PersonalSettingsController.php', |
|
| 50 | - 'OCA\\Settings\\Controller\\ReasonsController' => __DIR__ . '/..' . '/../lib/Controller/ReasonsController.php', |
|
| 51 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__ . '/..' . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 52 | - 'OCA\\Settings\\Controller\\UsersController' => __DIR__ . '/..' . '/../lib/Controller/UsersController.php', |
|
| 53 | - 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__ . '/..' . '/../lib/Controller/WebAuthnController.php', |
|
| 54 | - 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => __DIR__ . '/..' . '/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 55 | - 'OCA\\Settings\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php', |
|
| 56 | - 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => __DIR__ . '/..' . '/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 57 | - 'OCA\\Settings\\Listener\\GroupRemovedListener' => __DIR__ . '/..' . '/../lib/Listener/GroupRemovedListener.php', |
|
| 58 | - 'OCA\\Settings\\Listener\\MailProviderListener' => __DIR__ . '/..' . '/../lib/Listener/MailProviderListener.php', |
|
| 59 | - 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => __DIR__ . '/..' . '/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 60 | - 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => __DIR__ . '/..' . '/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 61 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__ . '/..' . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 62 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 63 | - 'OCA\\Settings\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php', |
|
| 64 | - 'OCA\\Settings\\Search\\AppSearch' => __DIR__ . '/..' . '/../lib/Search/AppSearch.php', |
|
| 65 | - 'OCA\\Settings\\Search\\SectionSearch' => __DIR__ . '/..' . '/../lib/Search/SectionSearch.php', |
|
| 66 | - 'OCA\\Settings\\Search\\UserSearch' => __DIR__ . '/..' . '/../lib/Search/UserSearch.php', |
|
| 67 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__ . '/..' . '/../lib/Sections/Admin/Additional.php', |
|
| 68 | - 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => __DIR__ . '/..' . '/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 69 | - 'OCA\\Settings\\Sections\\Admin\\Delegation' => __DIR__ . '/..' . '/../lib/Sections/Admin/Delegation.php', |
|
| 70 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__ . '/..' . '/../lib/Sections/Admin/Groupware.php', |
|
| 71 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Sections/Admin/Overview.php', |
|
| 72 | - 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Sections/Admin/Security.php', |
|
| 73 | - 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Sections/Admin/Server.php', |
|
| 74 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Sections/Admin/Sharing.php', |
|
| 75 | - 'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__ . '/..' . '/../lib/Sections/Personal/Availability.php', |
|
| 76 | - 'OCA\\Settings\\Sections\\Personal\\Calendar' => __DIR__ . '/..' . '/../lib/Sections/Personal/Calendar.php', |
|
| 77 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 78 | - 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__ . '/..' . '/../lib/Sections/Personal/Security.php', |
|
| 79 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__ . '/..' . '/../lib/Sections/Personal/SyncClients.php', |
|
| 80 | - 'OCA\\Settings\\Service\\AuthorizedGroupService' => __DIR__ . '/..' . '/../lib/Service/AuthorizedGroupService.php', |
|
| 81 | - 'OCA\\Settings\\Service\\NotFoundException' => __DIR__ . '/..' . '/../lib/Service/NotFoundException.php', |
|
| 82 | - 'OCA\\Settings\\Service\\ServiceException' => __DIR__ . '/..' . '/../lib/Service/ServiceException.php', |
|
| 83 | - 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => __DIR__ . '/..' . '/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 84 | - 'OCA\\Settings\\Settings\\Admin\\Delegation' => __DIR__ . '/..' . '/../lib/Settings/Admin/Delegation.php', |
|
| 85 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__ . '/..' . '/../lib/Settings/Admin/Mail.php', |
|
| 86 | - 'OCA\\Settings\\Settings\\Admin\\MailProvider' => __DIR__ . '/..' . '/../lib/Settings/Admin/MailProvider.php', |
|
| 87 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Settings/Admin/Overview.php', |
|
| 88 | - 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Settings/Admin/Security.php', |
|
| 89 | - 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Settings/Admin/Server.php', |
|
| 90 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Settings/Admin/Sharing.php', |
|
| 91 | - 'OCA\\Settings\\Settings\\Admin\\Users' => __DIR__ . '/..' . '/../lib/Settings/Admin/Users.php', |
|
| 92 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__ . '/..' . '/../lib/Settings/Personal/Additional.php', |
|
| 93 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 94 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 95 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Password.php', |
|
| 96 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 97 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 98 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__ . '/..' . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 99 | - 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => __DIR__ . '/..' . '/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 100 | - 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => __DIR__ . '/..' . '/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 101 | - 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => __DIR__ . '/..' . '/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 102 | - 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => __DIR__ . '/..' . '/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 103 | - 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => __DIR__ . '/..' . '/../lib/SetupChecks/CodeIntegrity.php', |
|
| 104 | - 'OCA\\Settings\\SetupChecks\\CronErrors' => __DIR__ . '/..' . '/../lib/SetupChecks/CronErrors.php', |
|
| 105 | - 'OCA\\Settings\\SetupChecks\\CronInfo' => __DIR__ . '/..' . '/../lib/SetupChecks/CronInfo.php', |
|
| 106 | - 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => __DIR__ . '/..' . '/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 107 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 108 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 109 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 110 | - 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 111 | - 'OCA\\Settings\\SetupChecks\\DebugMode' => __DIR__ . '/..' . '/../lib/SetupChecks/DebugMode.php', |
|
| 112 | - 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => __DIR__ . '/..' . '/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 113 | - 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => __DIR__ . '/..' . '/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 114 | - 'OCA\\Settings\\SetupChecks\\FileLocking' => __DIR__ . '/..' . '/../lib/SetupChecks/FileLocking.php', |
|
| 115 | - 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => __DIR__ . '/..' . '/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 116 | - 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => __DIR__ . '/..' . '/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 117 | - 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => __DIR__ . '/..' . '/../lib/SetupChecks/InternetConnectivity.php', |
|
| 118 | - 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => __DIR__ . '/..' . '/../lib/SetupChecks/JavaScriptModules.php', |
|
| 119 | - 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => __DIR__ . '/..' . '/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 120 | - 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => __DIR__ . '/..' . '/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 121 | - 'OCA\\Settings\\SetupChecks\\LoggingLevel' => __DIR__ . '/..' . '/../lib/SetupChecks/LoggingLevel.php', |
|
| 122 | - 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => __DIR__ . '/..' . '/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 123 | - 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => __DIR__ . '/..' . '/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 124 | - 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => __DIR__ . '/..' . '/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 125 | - 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => __DIR__ . '/..' . '/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 126 | - 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => __DIR__ . '/..' . '/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 127 | - 'OCA\\Settings\\SetupChecks\\OcxProviders' => __DIR__ . '/..' . '/../lib/SetupChecks/OcxProviders.php', |
|
| 128 | - 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => __DIR__ . '/..' . '/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 129 | - 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 130 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 131 | - 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 132 | - 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 133 | - 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpGetEnv.php', |
|
| 134 | - 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 135 | - 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 136 | - 'OCA\\Settings\\SetupChecks\\PhpModules' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpModules.php', |
|
| 137 | - 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 138 | - 'OCA\\Settings\\SetupChecks\\PhpOutdated' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOutdated.php', |
|
| 139 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 140 | - 'OCA\\Settings\\SetupChecks\\PushService' => __DIR__ . '/..' . '/../lib/SetupChecks/PushService.php', |
|
| 141 | - 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => __DIR__ . '/..' . '/../lib/SetupChecks/RandomnessSecure.php', |
|
| 142 | - 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 143 | - 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => __DIR__ . '/..' . '/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 144 | - 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => __DIR__ . '/..' . '/../lib/SetupChecks/SecurityHeaders.php', |
|
| 145 | - 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => __DIR__ . '/..' . '/../lib/SetupChecks/SupportedDatabase.php', |
|
| 146 | - 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => __DIR__ . '/..' . '/../lib/SetupChecks/SystemIs64bit.php', |
|
| 147 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => __DIR__ . '/..' . '/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 148 | - 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => __DIR__ . '/..' . '/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 149 | - 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => __DIR__ . '/..' . '/../lib/SetupChecks/TransactionIsolation.php', |
|
| 150 | - 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => __DIR__ . '/..' . '/../lib/SetupChecks/WellKnownUrls.php', |
|
| 151 | - 'OCA\\Settings\\SetupChecks\\Woff2Loading' => __DIR__ . '/..' . '/../lib/SetupChecks/Woff2Loading.php', |
|
| 152 | - 'OCA\\Settings\\UserMigration\\AccountMigrator' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigrator.php', |
|
| 153 | - 'OCA\\Settings\\UserMigration\\AccountMigratorException' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigratorException.php', |
|
| 154 | - 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => __DIR__ . '/..' . '/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 155 | - 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => __DIR__ . '/..' . '/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\Settings\\Activity\\GroupProvider' => __DIR__.'/..'.'/../lib/Activity/GroupProvider.php', |
|
| 26 | + 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__.'/..'.'/../lib/Activity/GroupSetting.php', |
|
| 27 | + 'OCA\\Settings\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 28 | + 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__.'/..'.'/../lib/Activity/SecurityFilter.php', |
|
| 29 | + 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__.'/..'.'/../lib/Activity/SecurityProvider.php', |
|
| 30 | + 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__.'/..'.'/../lib/Activity/SecuritySetting.php', |
|
| 31 | + 'OCA\\Settings\\Activity\\Setting' => __DIR__.'/..'.'/../lib/Activity/Setting.php', |
|
| 32 | + 'OCA\\Settings\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 33 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__.'/..'.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 34 | + 'OCA\\Settings\\Command\\AdminDelegation\\Add' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Add.php', |
|
| 35 | + 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Remove.php', |
|
| 36 | + 'OCA\\Settings\\Command\\AdminDelegation\\Show' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Show.php', |
|
| 37 | + 'OCA\\Settings\\Controller\\AISettingsController' => __DIR__.'/..'.'/../lib/Controller/AISettingsController.php', |
|
| 38 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__.'/..'.'/../lib/Controller/AdminSettingsController.php', |
|
| 39 | + 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__.'/..'.'/../lib/Controller/AppSettingsController.php', |
|
| 40 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__.'/..'.'/../lib/Controller/AuthSettingsController.php', |
|
| 41 | + 'OCA\\Settings\\Controller\\AuthorizedGroupController' => __DIR__.'/..'.'/../lib/Controller/AuthorizedGroupController.php', |
|
| 42 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__.'/..'.'/../lib/Controller/ChangePasswordController.php', |
|
| 43 | + 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__.'/..'.'/../lib/Controller/CheckSetupController.php', |
|
| 44 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__.'/..'.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 45 | + 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => __DIR__.'/..'.'/../lib/Controller/DeclarativeSettingsController.php', |
|
| 46 | + 'OCA\\Settings\\Controller\\HelpController' => __DIR__.'/..'.'/../lib/Controller/HelpController.php', |
|
| 47 | + 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__.'/..'.'/../lib/Controller/LogSettingsController.php', |
|
| 48 | + 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__.'/..'.'/../lib/Controller/MailSettingsController.php', |
|
| 49 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__.'/..'.'/../lib/Controller/PersonalSettingsController.php', |
|
| 50 | + 'OCA\\Settings\\Controller\\ReasonsController' => __DIR__.'/..'.'/../lib/Controller/ReasonsController.php', |
|
| 51 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__.'/..'.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 52 | + 'OCA\\Settings\\Controller\\UsersController' => __DIR__.'/..'.'/../lib/Controller/UsersController.php', |
|
| 53 | + 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__.'/..'.'/../lib/Controller/WebAuthnController.php', |
|
| 54 | + 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => __DIR__.'/..'.'/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 55 | + 'OCA\\Settings\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php', |
|
| 56 | + 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => __DIR__.'/..'.'/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 57 | + 'OCA\\Settings\\Listener\\GroupRemovedListener' => __DIR__.'/..'.'/../lib/Listener/GroupRemovedListener.php', |
|
| 58 | + 'OCA\\Settings\\Listener\\MailProviderListener' => __DIR__.'/..'.'/../lib/Listener/MailProviderListener.php', |
|
| 59 | + 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => __DIR__.'/..'.'/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 60 | + 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => __DIR__.'/..'.'/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 61 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__.'/..'.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 62 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 63 | + 'OCA\\Settings\\ResponseDefinitions' => __DIR__.'/..'.'/../lib/ResponseDefinitions.php', |
|
| 64 | + 'OCA\\Settings\\Search\\AppSearch' => __DIR__.'/..'.'/../lib/Search/AppSearch.php', |
|
| 65 | + 'OCA\\Settings\\Search\\SectionSearch' => __DIR__.'/..'.'/../lib/Search/SectionSearch.php', |
|
| 66 | + 'OCA\\Settings\\Search\\UserSearch' => __DIR__.'/..'.'/../lib/Search/UserSearch.php', |
|
| 67 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__.'/..'.'/../lib/Sections/Admin/Additional.php', |
|
| 68 | + 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => __DIR__.'/..'.'/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 69 | + 'OCA\\Settings\\Sections\\Admin\\Delegation' => __DIR__.'/..'.'/../lib/Sections/Admin/Delegation.php', |
|
| 70 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__.'/..'.'/../lib/Sections/Admin/Groupware.php', |
|
| 71 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Sections/Admin/Overview.php', |
|
| 72 | + 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__.'/..'.'/../lib/Sections/Admin/Security.php', |
|
| 73 | + 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__.'/..'.'/../lib/Sections/Admin/Server.php', |
|
| 74 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Sections/Admin/Sharing.php', |
|
| 75 | + 'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__.'/..'.'/../lib/Sections/Personal/Availability.php', |
|
| 76 | + 'OCA\\Settings\\Sections\\Personal\\Calendar' => __DIR__.'/..'.'/../lib/Sections/Personal/Calendar.php', |
|
| 77 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 78 | + 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__.'/..'.'/../lib/Sections/Personal/Security.php', |
|
| 79 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__.'/..'.'/../lib/Sections/Personal/SyncClients.php', |
|
| 80 | + 'OCA\\Settings\\Service\\AuthorizedGroupService' => __DIR__.'/..'.'/../lib/Service/AuthorizedGroupService.php', |
|
| 81 | + 'OCA\\Settings\\Service\\NotFoundException' => __DIR__.'/..'.'/../lib/Service/NotFoundException.php', |
|
| 82 | + 'OCA\\Settings\\Service\\ServiceException' => __DIR__.'/..'.'/../lib/Service/ServiceException.php', |
|
| 83 | + 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => __DIR__.'/..'.'/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 84 | + 'OCA\\Settings\\Settings\\Admin\\Delegation' => __DIR__.'/..'.'/../lib/Settings/Admin/Delegation.php', |
|
| 85 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__.'/..'.'/../lib/Settings/Admin/Mail.php', |
|
| 86 | + 'OCA\\Settings\\Settings\\Admin\\MailProvider' => __DIR__.'/..'.'/../lib/Settings/Admin/MailProvider.php', |
|
| 87 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Settings/Admin/Overview.php', |
|
| 88 | + 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__.'/..'.'/../lib/Settings/Admin/Security.php', |
|
| 89 | + 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__.'/..'.'/../lib/Settings/Admin/Server.php', |
|
| 90 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Settings/Admin/Sharing.php', |
|
| 91 | + 'OCA\\Settings\\Settings\\Admin\\Users' => __DIR__.'/..'.'/../lib/Settings/Admin/Users.php', |
|
| 92 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__.'/..'.'/../lib/Settings/Personal/Additional.php', |
|
| 93 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 94 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 95 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Password.php', |
|
| 96 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 97 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 98 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__.'/..'.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 99 | + 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => __DIR__.'/..'.'/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 100 | + 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => __DIR__.'/..'.'/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 101 | + 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => __DIR__.'/..'.'/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 102 | + 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => __DIR__.'/..'.'/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 103 | + 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => __DIR__.'/..'.'/../lib/SetupChecks/CodeIntegrity.php', |
|
| 104 | + 'OCA\\Settings\\SetupChecks\\CronErrors' => __DIR__.'/..'.'/../lib/SetupChecks/CronErrors.php', |
|
| 105 | + 'OCA\\Settings\\SetupChecks\\CronInfo' => __DIR__.'/..'.'/../lib/SetupChecks/CronInfo.php', |
|
| 106 | + 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => __DIR__.'/..'.'/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 107 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 108 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 109 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 110 | + 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => __DIR__.'/..'.'/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 111 | + 'OCA\\Settings\\SetupChecks\\DebugMode' => __DIR__.'/..'.'/../lib/SetupChecks/DebugMode.php', |
|
| 112 | + 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => __DIR__.'/..'.'/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 113 | + 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => __DIR__.'/..'.'/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 114 | + 'OCA\\Settings\\SetupChecks\\FileLocking' => __DIR__.'/..'.'/../lib/SetupChecks/FileLocking.php', |
|
| 115 | + 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => __DIR__.'/..'.'/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 116 | + 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => __DIR__.'/..'.'/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 117 | + 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => __DIR__.'/..'.'/../lib/SetupChecks/InternetConnectivity.php', |
|
| 118 | + 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => __DIR__.'/..'.'/../lib/SetupChecks/JavaScriptModules.php', |
|
| 119 | + 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => __DIR__.'/..'.'/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 120 | + 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => __DIR__.'/..'.'/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 121 | + 'OCA\\Settings\\SetupChecks\\LoggingLevel' => __DIR__.'/..'.'/../lib/SetupChecks/LoggingLevel.php', |
|
| 122 | + 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => __DIR__.'/..'.'/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 123 | + 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => __DIR__.'/..'.'/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 124 | + 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => __DIR__.'/..'.'/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 125 | + 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => __DIR__.'/..'.'/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 126 | + 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => __DIR__.'/..'.'/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 127 | + 'OCA\\Settings\\SetupChecks\\OcxProviders' => __DIR__.'/..'.'/../lib/SetupChecks/OcxProviders.php', |
|
| 128 | + 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => __DIR__.'/..'.'/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 129 | + 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => __DIR__.'/..'.'/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 130 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__.'/..'.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 131 | + 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => __DIR__.'/..'.'/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 132 | + 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => __DIR__.'/..'.'/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 133 | + 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => __DIR__.'/..'.'/../lib/SetupChecks/PhpGetEnv.php', |
|
| 134 | + 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => __DIR__.'/..'.'/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 135 | + 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => __DIR__.'/..'.'/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 136 | + 'OCA\\Settings\\SetupChecks\\PhpModules' => __DIR__.'/..'.'/../lib/SetupChecks/PhpModules.php', |
|
| 137 | + 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 138 | + 'OCA\\Settings\\SetupChecks\\PhpOutdated' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOutdated.php', |
|
| 139 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 140 | + 'OCA\\Settings\\SetupChecks\\PushService' => __DIR__.'/..'.'/../lib/SetupChecks/PushService.php', |
|
| 141 | + 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => __DIR__.'/..'.'/../lib/SetupChecks/RandomnessSecure.php', |
|
| 142 | + 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => __DIR__.'/..'.'/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 143 | + 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => __DIR__.'/..'.'/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 144 | + 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => __DIR__.'/..'.'/../lib/SetupChecks/SecurityHeaders.php', |
|
| 145 | + 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => __DIR__.'/..'.'/../lib/SetupChecks/SupportedDatabase.php', |
|
| 146 | + 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => __DIR__.'/..'.'/../lib/SetupChecks/SystemIs64bit.php', |
|
| 147 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => __DIR__.'/..'.'/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 148 | + 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => __DIR__.'/..'.'/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 149 | + 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => __DIR__.'/..'.'/../lib/SetupChecks/TransactionIsolation.php', |
|
| 150 | + 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => __DIR__.'/..'.'/../lib/SetupChecks/WellKnownUrls.php', |
|
| 151 | + 'OCA\\Settings\\SetupChecks\\Woff2Loading' => __DIR__.'/..'.'/../lib/SetupChecks/Woff2Loading.php', |
|
| 152 | + 'OCA\\Settings\\UserMigration\\AccountMigrator' => __DIR__.'/..'.'/../lib/UserMigration/AccountMigrator.php', |
|
| 153 | + 'OCA\\Settings\\UserMigration\\AccountMigratorException' => __DIR__.'/..'.'/../lib/UserMigration/AccountMigratorException.php', |
|
| 154 | + 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => __DIR__.'/..'.'/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 155 | + 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => __DIR__.'/..'.'/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 156 | 156 | ); |
| 157 | 157 | |
| 158 | 158 | public static function getInitializer(ClassLoader $loader) |
| 159 | 159 | { |
| 160 | - return \Closure::bind(function () use ($loader) { |
|
| 160 | + return \Closure::bind(function() use ($loader) { |
|
| 161 | 161 | $loader->prefixLengthsPsr4 = ComposerStaticInitSettings::$prefixLengthsPsr4; |
| 162 | 162 | $loader->prefixDirsPsr4 = ComposerStaticInitSettings::$prefixDirsPsr4; |
| 163 | 163 | $loader->classMap = ComposerStaticInitSettings::$classMap; |
@@ -6,136 +6,136 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir . '/../lib/Activity/GroupProvider.php', |
|
| 11 | - 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir . '/../lib/Activity/GroupSetting.php', |
|
| 12 | - 'OCA\\Settings\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 13 | - 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir . '/../lib/Activity/SecurityFilter.php', |
|
| 14 | - 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir . '/../lib/Activity/SecurityProvider.php', |
|
| 15 | - 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir . '/../lib/Activity/SecuritySetting.php', |
|
| 16 | - 'OCA\\Settings\\Activity\\Setting' => $baseDir . '/../lib/Activity/Setting.php', |
|
| 17 | - 'OCA\\Settings\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 18 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 19 | - 'OCA\\Settings\\Command\\AdminDelegation\\Add' => $baseDir . '/../lib/Command/AdminDelegation/Add.php', |
|
| 20 | - 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => $baseDir . '/../lib/Command/AdminDelegation/Remove.php', |
|
| 21 | - 'OCA\\Settings\\Command\\AdminDelegation\\Show' => $baseDir . '/../lib/Command/AdminDelegation/Show.php', |
|
| 22 | - 'OCA\\Settings\\Controller\\AISettingsController' => $baseDir . '/../lib/Controller/AISettingsController.php', |
|
| 23 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir . '/../lib/Controller/AdminSettingsController.php', |
|
| 24 | - 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir . '/../lib/Controller/AppSettingsController.php', |
|
| 25 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir . '/../lib/Controller/AuthSettingsController.php', |
|
| 26 | - 'OCA\\Settings\\Controller\\AuthorizedGroupController' => $baseDir . '/../lib/Controller/AuthorizedGroupController.php', |
|
| 27 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir . '/../lib/Controller/ChangePasswordController.php', |
|
| 28 | - 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir . '/../lib/Controller/CheckSetupController.php', |
|
| 29 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 30 | - 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => $baseDir . '/../lib/Controller/DeclarativeSettingsController.php', |
|
| 31 | - 'OCA\\Settings\\Controller\\HelpController' => $baseDir . '/../lib/Controller/HelpController.php', |
|
| 32 | - 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir . '/../lib/Controller/LogSettingsController.php', |
|
| 33 | - 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir . '/../lib/Controller/MailSettingsController.php', |
|
| 34 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir . '/../lib/Controller/PersonalSettingsController.php', |
|
| 35 | - 'OCA\\Settings\\Controller\\ReasonsController' => $baseDir . '/../lib/Controller/ReasonsController.php', |
|
| 36 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 37 | - 'OCA\\Settings\\Controller\\UsersController' => $baseDir . '/../lib/Controller/UsersController.php', |
|
| 38 | - 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir . '/../lib/Controller/WebAuthnController.php', |
|
| 39 | - 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => $baseDir . '/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 40 | - 'OCA\\Settings\\Hooks' => $baseDir . '/../lib/Hooks.php', |
|
| 41 | - 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => $baseDir . '/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 42 | - 'OCA\\Settings\\Listener\\GroupRemovedListener' => $baseDir . '/../lib/Listener/GroupRemovedListener.php', |
|
| 43 | - 'OCA\\Settings\\Listener\\MailProviderListener' => $baseDir . '/../lib/Listener/MailProviderListener.php', |
|
| 44 | - 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => $baseDir . '/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 45 | - 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => $baseDir . '/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 46 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 47 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 48 | - 'OCA\\Settings\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php', |
|
| 49 | - 'OCA\\Settings\\Search\\AppSearch' => $baseDir . '/../lib/Search/AppSearch.php', |
|
| 50 | - 'OCA\\Settings\\Search\\SectionSearch' => $baseDir . '/../lib/Search/SectionSearch.php', |
|
| 51 | - 'OCA\\Settings\\Search\\UserSearch' => $baseDir . '/../lib/Search/UserSearch.php', |
|
| 52 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir . '/../lib/Sections/Admin/Additional.php', |
|
| 53 | - 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => $baseDir . '/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 54 | - 'OCA\\Settings\\Sections\\Admin\\Delegation' => $baseDir . '/../lib/Sections/Admin/Delegation.php', |
|
| 55 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir . '/../lib/Sections/Admin/Groupware.php', |
|
| 56 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir . '/../lib/Sections/Admin/Overview.php', |
|
| 57 | - 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir . '/../lib/Sections/Admin/Security.php', |
|
| 58 | - 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir . '/../lib/Sections/Admin/Server.php', |
|
| 59 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir . '/../lib/Sections/Admin/Sharing.php', |
|
| 60 | - 'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir . '/../lib/Sections/Personal/Availability.php', |
|
| 61 | - 'OCA\\Settings\\Sections\\Personal\\Calendar' => $baseDir . '/../lib/Sections/Personal/Calendar.php', |
|
| 62 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 63 | - 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir . '/../lib/Sections/Personal/Security.php', |
|
| 64 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir . '/../lib/Sections/Personal/SyncClients.php', |
|
| 65 | - 'OCA\\Settings\\Service\\AuthorizedGroupService' => $baseDir . '/../lib/Service/AuthorizedGroupService.php', |
|
| 66 | - 'OCA\\Settings\\Service\\NotFoundException' => $baseDir . '/../lib/Service/NotFoundException.php', |
|
| 67 | - 'OCA\\Settings\\Service\\ServiceException' => $baseDir . '/../lib/Service/ServiceException.php', |
|
| 68 | - 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => $baseDir . '/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 69 | - 'OCA\\Settings\\Settings\\Admin\\Delegation' => $baseDir . '/../lib/Settings/Admin/Delegation.php', |
|
| 70 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir . '/../lib/Settings/Admin/Mail.php', |
|
| 71 | - 'OCA\\Settings\\Settings\\Admin\\MailProvider' => $baseDir . '/../lib/Settings/Admin/MailProvider.php', |
|
| 72 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir . '/../lib/Settings/Admin/Overview.php', |
|
| 73 | - 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir . '/../lib/Settings/Admin/Security.php', |
|
| 74 | - 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir . '/../lib/Settings/Admin/Server.php', |
|
| 75 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir . '/../lib/Settings/Admin/Sharing.php', |
|
| 76 | - 'OCA\\Settings\\Settings\\Admin\\Users' => $baseDir . '/../lib/Settings/Admin/Users.php', |
|
| 77 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir . '/../lib/Settings/Personal/Additional.php', |
|
| 78 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 79 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 80 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir . '/../lib/Settings/Personal/Security/Password.php', |
|
| 81 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 82 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 83 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 84 | - 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => $baseDir . '/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 85 | - 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => $baseDir . '/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 86 | - 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => $baseDir . '/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 87 | - 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => $baseDir . '/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 88 | - 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => $baseDir . '/../lib/SetupChecks/CodeIntegrity.php', |
|
| 89 | - 'OCA\\Settings\\SetupChecks\\CronErrors' => $baseDir . '/../lib/SetupChecks/CronErrors.php', |
|
| 90 | - 'OCA\\Settings\\SetupChecks\\CronInfo' => $baseDir . '/../lib/SetupChecks/CronInfo.php', |
|
| 91 | - 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => $baseDir . '/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 92 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 93 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 94 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 95 | - 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => $baseDir . '/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 96 | - 'OCA\\Settings\\SetupChecks\\DebugMode' => $baseDir . '/../lib/SetupChecks/DebugMode.php', |
|
| 97 | - 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => $baseDir . '/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 98 | - 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => $baseDir . '/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 99 | - 'OCA\\Settings\\SetupChecks\\FileLocking' => $baseDir . '/../lib/SetupChecks/FileLocking.php', |
|
| 100 | - 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => $baseDir . '/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 101 | - 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => $baseDir . '/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 102 | - 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => $baseDir . '/../lib/SetupChecks/InternetConnectivity.php', |
|
| 103 | - 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => $baseDir . '/../lib/SetupChecks/JavaScriptModules.php', |
|
| 104 | - 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => $baseDir . '/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 105 | - 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => $baseDir . '/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 106 | - 'OCA\\Settings\\SetupChecks\\LoggingLevel' => $baseDir . '/../lib/SetupChecks/LoggingLevel.php', |
|
| 107 | - 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => $baseDir . '/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 108 | - 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => $baseDir . '/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 109 | - 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => $baseDir . '/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 110 | - 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => $baseDir . '/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 111 | - 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => $baseDir . '/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 112 | - 'OCA\\Settings\\SetupChecks\\OcxProviders' => $baseDir . '/../lib/SetupChecks/OcxProviders.php', |
|
| 113 | - 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => $baseDir . '/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 114 | - 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => $baseDir . '/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 115 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 116 | - 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => $baseDir . '/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 117 | - 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => $baseDir . '/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 118 | - 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => $baseDir . '/../lib/SetupChecks/PhpGetEnv.php', |
|
| 119 | - 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => $baseDir . '/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 120 | - 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => $baseDir . '/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 121 | - 'OCA\\Settings\\SetupChecks\\PhpModules' => $baseDir . '/../lib/SetupChecks/PhpModules.php', |
|
| 122 | - 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => $baseDir . '/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 123 | - 'OCA\\Settings\\SetupChecks\\PhpOutdated' => $baseDir . '/../lib/SetupChecks/PhpOutdated.php', |
|
| 124 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 125 | - 'OCA\\Settings\\SetupChecks\\PushService' => $baseDir . '/../lib/SetupChecks/PushService.php', |
|
| 126 | - 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => $baseDir . '/../lib/SetupChecks/RandomnessSecure.php', |
|
| 127 | - 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => $baseDir . '/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 128 | - 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => $baseDir . '/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 129 | - 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => $baseDir . '/../lib/SetupChecks/SecurityHeaders.php', |
|
| 130 | - 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => $baseDir . '/../lib/SetupChecks/SupportedDatabase.php', |
|
| 131 | - 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => $baseDir . '/../lib/SetupChecks/SystemIs64bit.php', |
|
| 132 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => $baseDir . '/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 133 | - 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => $baseDir . '/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 134 | - 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => $baseDir . '/../lib/SetupChecks/TransactionIsolation.php', |
|
| 135 | - 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => $baseDir . '/../lib/SetupChecks/WellKnownUrls.php', |
|
| 136 | - 'OCA\\Settings\\SetupChecks\\Woff2Loading' => $baseDir . '/../lib/SetupChecks/Woff2Loading.php', |
|
| 137 | - 'OCA\\Settings\\UserMigration\\AccountMigrator' => $baseDir . '/../lib/UserMigration/AccountMigrator.php', |
|
| 138 | - 'OCA\\Settings\\UserMigration\\AccountMigratorException' => $baseDir . '/../lib/UserMigration/AccountMigratorException.php', |
|
| 139 | - 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => $baseDir . '/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 140 | - 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => $baseDir . '/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir.'/../lib/Activity/GroupProvider.php', |
|
| 11 | + 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir.'/../lib/Activity/GroupSetting.php', |
|
| 12 | + 'OCA\\Settings\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 13 | + 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir.'/../lib/Activity/SecurityFilter.php', |
|
| 14 | + 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir.'/../lib/Activity/SecurityProvider.php', |
|
| 15 | + 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir.'/../lib/Activity/SecuritySetting.php', |
|
| 16 | + 'OCA\\Settings\\Activity\\Setting' => $baseDir.'/../lib/Activity/Setting.php', |
|
| 17 | + 'OCA\\Settings\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 18 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 19 | + 'OCA\\Settings\\Command\\AdminDelegation\\Add' => $baseDir.'/../lib/Command/AdminDelegation/Add.php', |
|
| 20 | + 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => $baseDir.'/../lib/Command/AdminDelegation/Remove.php', |
|
| 21 | + 'OCA\\Settings\\Command\\AdminDelegation\\Show' => $baseDir.'/../lib/Command/AdminDelegation/Show.php', |
|
| 22 | + 'OCA\\Settings\\Controller\\AISettingsController' => $baseDir.'/../lib/Controller/AISettingsController.php', |
|
| 23 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir.'/../lib/Controller/AdminSettingsController.php', |
|
| 24 | + 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir.'/../lib/Controller/AppSettingsController.php', |
|
| 25 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir.'/../lib/Controller/AuthSettingsController.php', |
|
| 26 | + 'OCA\\Settings\\Controller\\AuthorizedGroupController' => $baseDir.'/../lib/Controller/AuthorizedGroupController.php', |
|
| 27 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir.'/../lib/Controller/ChangePasswordController.php', |
|
| 28 | + 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir.'/../lib/Controller/CheckSetupController.php', |
|
| 29 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 30 | + 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => $baseDir.'/../lib/Controller/DeclarativeSettingsController.php', |
|
| 31 | + 'OCA\\Settings\\Controller\\HelpController' => $baseDir.'/../lib/Controller/HelpController.php', |
|
| 32 | + 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir.'/../lib/Controller/LogSettingsController.php', |
|
| 33 | + 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir.'/../lib/Controller/MailSettingsController.php', |
|
| 34 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir.'/../lib/Controller/PersonalSettingsController.php', |
|
| 35 | + 'OCA\\Settings\\Controller\\ReasonsController' => $baseDir.'/../lib/Controller/ReasonsController.php', |
|
| 36 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 37 | + 'OCA\\Settings\\Controller\\UsersController' => $baseDir.'/../lib/Controller/UsersController.php', |
|
| 38 | + 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir.'/../lib/Controller/WebAuthnController.php', |
|
| 39 | + 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => $baseDir.'/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 40 | + 'OCA\\Settings\\Hooks' => $baseDir.'/../lib/Hooks.php', |
|
| 41 | + 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => $baseDir.'/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 42 | + 'OCA\\Settings\\Listener\\GroupRemovedListener' => $baseDir.'/../lib/Listener/GroupRemovedListener.php', |
|
| 43 | + 'OCA\\Settings\\Listener\\MailProviderListener' => $baseDir.'/../lib/Listener/MailProviderListener.php', |
|
| 44 | + 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => $baseDir.'/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 45 | + 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => $baseDir.'/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 46 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 47 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 48 | + 'OCA\\Settings\\ResponseDefinitions' => $baseDir.'/../lib/ResponseDefinitions.php', |
|
| 49 | + 'OCA\\Settings\\Search\\AppSearch' => $baseDir.'/../lib/Search/AppSearch.php', |
|
| 50 | + 'OCA\\Settings\\Search\\SectionSearch' => $baseDir.'/../lib/Search/SectionSearch.php', |
|
| 51 | + 'OCA\\Settings\\Search\\UserSearch' => $baseDir.'/../lib/Search/UserSearch.php', |
|
| 52 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir.'/../lib/Sections/Admin/Additional.php', |
|
| 53 | + 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => $baseDir.'/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 54 | + 'OCA\\Settings\\Sections\\Admin\\Delegation' => $baseDir.'/../lib/Sections/Admin/Delegation.php', |
|
| 55 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir.'/../lib/Sections/Admin/Groupware.php', |
|
| 56 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir.'/../lib/Sections/Admin/Overview.php', |
|
| 57 | + 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir.'/../lib/Sections/Admin/Security.php', |
|
| 58 | + 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir.'/../lib/Sections/Admin/Server.php', |
|
| 59 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir.'/../lib/Sections/Admin/Sharing.php', |
|
| 60 | + 'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir.'/../lib/Sections/Personal/Availability.php', |
|
| 61 | + 'OCA\\Settings\\Sections\\Personal\\Calendar' => $baseDir.'/../lib/Sections/Personal/Calendar.php', |
|
| 62 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 63 | + 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir.'/../lib/Sections/Personal/Security.php', |
|
| 64 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir.'/../lib/Sections/Personal/SyncClients.php', |
|
| 65 | + 'OCA\\Settings\\Service\\AuthorizedGroupService' => $baseDir.'/../lib/Service/AuthorizedGroupService.php', |
|
| 66 | + 'OCA\\Settings\\Service\\NotFoundException' => $baseDir.'/../lib/Service/NotFoundException.php', |
|
| 67 | + 'OCA\\Settings\\Service\\ServiceException' => $baseDir.'/../lib/Service/ServiceException.php', |
|
| 68 | + 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => $baseDir.'/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 69 | + 'OCA\\Settings\\Settings\\Admin\\Delegation' => $baseDir.'/../lib/Settings/Admin/Delegation.php', |
|
| 70 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir.'/../lib/Settings/Admin/Mail.php', |
|
| 71 | + 'OCA\\Settings\\Settings\\Admin\\MailProvider' => $baseDir.'/../lib/Settings/Admin/MailProvider.php', |
|
| 72 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir.'/../lib/Settings/Admin/Overview.php', |
|
| 73 | + 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir.'/../lib/Settings/Admin/Security.php', |
|
| 74 | + 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir.'/../lib/Settings/Admin/Server.php', |
|
| 75 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir.'/../lib/Settings/Admin/Sharing.php', |
|
| 76 | + 'OCA\\Settings\\Settings\\Admin\\Users' => $baseDir.'/../lib/Settings/Admin/Users.php', |
|
| 77 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir.'/../lib/Settings/Personal/Additional.php', |
|
| 78 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 79 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 80 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir.'/../lib/Settings/Personal/Security/Password.php', |
|
| 81 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 82 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 83 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 84 | + 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => $baseDir.'/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 85 | + 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => $baseDir.'/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 86 | + 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => $baseDir.'/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 87 | + 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => $baseDir.'/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 88 | + 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => $baseDir.'/../lib/SetupChecks/CodeIntegrity.php', |
|
| 89 | + 'OCA\\Settings\\SetupChecks\\CronErrors' => $baseDir.'/../lib/SetupChecks/CronErrors.php', |
|
| 90 | + 'OCA\\Settings\\SetupChecks\\CronInfo' => $baseDir.'/../lib/SetupChecks/CronInfo.php', |
|
| 91 | + 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => $baseDir.'/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 92 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 93 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 94 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 95 | + 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => $baseDir.'/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 96 | + 'OCA\\Settings\\SetupChecks\\DebugMode' => $baseDir.'/../lib/SetupChecks/DebugMode.php', |
|
| 97 | + 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => $baseDir.'/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 98 | + 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => $baseDir.'/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 99 | + 'OCA\\Settings\\SetupChecks\\FileLocking' => $baseDir.'/../lib/SetupChecks/FileLocking.php', |
|
| 100 | + 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => $baseDir.'/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 101 | + 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => $baseDir.'/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 102 | + 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => $baseDir.'/../lib/SetupChecks/InternetConnectivity.php', |
|
| 103 | + 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => $baseDir.'/../lib/SetupChecks/JavaScriptModules.php', |
|
| 104 | + 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => $baseDir.'/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 105 | + 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => $baseDir.'/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 106 | + 'OCA\\Settings\\SetupChecks\\LoggingLevel' => $baseDir.'/../lib/SetupChecks/LoggingLevel.php', |
|
| 107 | + 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => $baseDir.'/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 108 | + 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => $baseDir.'/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 109 | + 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => $baseDir.'/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 110 | + 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => $baseDir.'/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 111 | + 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => $baseDir.'/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 112 | + 'OCA\\Settings\\SetupChecks\\OcxProviders' => $baseDir.'/../lib/SetupChecks/OcxProviders.php', |
|
| 113 | + 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => $baseDir.'/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 114 | + 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => $baseDir.'/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 115 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 116 | + 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => $baseDir.'/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 117 | + 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => $baseDir.'/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 118 | + 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => $baseDir.'/../lib/SetupChecks/PhpGetEnv.php', |
|
| 119 | + 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => $baseDir.'/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 120 | + 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => $baseDir.'/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 121 | + 'OCA\\Settings\\SetupChecks\\PhpModules' => $baseDir.'/../lib/SetupChecks/PhpModules.php', |
|
| 122 | + 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => $baseDir.'/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 123 | + 'OCA\\Settings\\SetupChecks\\PhpOutdated' => $baseDir.'/../lib/SetupChecks/PhpOutdated.php', |
|
| 124 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 125 | + 'OCA\\Settings\\SetupChecks\\PushService' => $baseDir.'/../lib/SetupChecks/PushService.php', |
|
| 126 | + 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => $baseDir.'/../lib/SetupChecks/RandomnessSecure.php', |
|
| 127 | + 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => $baseDir.'/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 128 | + 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => $baseDir.'/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 129 | + 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => $baseDir.'/../lib/SetupChecks/SecurityHeaders.php', |
|
| 130 | + 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => $baseDir.'/../lib/SetupChecks/SupportedDatabase.php', |
|
| 131 | + 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => $baseDir.'/../lib/SetupChecks/SystemIs64bit.php', |
|
| 132 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => $baseDir.'/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 133 | + 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => $baseDir.'/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 134 | + 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => $baseDir.'/../lib/SetupChecks/TransactionIsolation.php', |
|
| 135 | + 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => $baseDir.'/../lib/SetupChecks/WellKnownUrls.php', |
|
| 136 | + 'OCA\\Settings\\SetupChecks\\Woff2Loading' => $baseDir.'/../lib/SetupChecks/Woff2Loading.php', |
|
| 137 | + 'OCA\\Settings\\UserMigration\\AccountMigrator' => $baseDir.'/../lib/UserMigration/AccountMigrator.php', |
|
| 138 | + 'OCA\\Settings\\UserMigration\\AccountMigratorException' => $baseDir.'/../lib/UserMigration/AccountMigratorException.php', |
|
| 139 | + 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => $baseDir.'/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 140 | + 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => $baseDir.'/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 141 | 141 | ); |
@@ -17,57 +17,57 @@ |
||
| 17 | 17 | use Test\TestCase; |
| 18 | 18 | |
| 19 | 19 | class TaskProcessingPickupSpeedTest extends TestCase { |
| 20 | - private IL10N $l10n; |
|
| 21 | - private ITimeFactory $timeFactory; |
|
| 22 | - private IManager $taskProcessingManager; |
|
| 20 | + private IL10N $l10n; |
|
| 21 | + private ITimeFactory $timeFactory; |
|
| 22 | + private IManager $taskProcessingManager; |
|
| 23 | 23 | |
| 24 | - private TaskProcessingPickupSpeed $check; |
|
| 24 | + private TaskProcessingPickupSpeed $check; |
|
| 25 | 25 | |
| 26 | - protected function setUp(): void { |
|
| 27 | - parent::setUp(); |
|
| 26 | + protected function setUp(): void { |
|
| 27 | + parent::setUp(); |
|
| 28 | 28 | |
| 29 | - $this->l10n = $this->getMockBuilder(IL10N::class)->getMock(); |
|
| 30 | - $this->timeFactory = $this->getMockBuilder(ITimeFactory::class)->getMock(); |
|
| 31 | - $this->taskProcessingManager = $this->getMockBuilder(IManager::class)->getMock(); |
|
| 29 | + $this->l10n = $this->getMockBuilder(IL10N::class)->getMock(); |
|
| 30 | + $this->timeFactory = $this->getMockBuilder(ITimeFactory::class)->getMock(); |
|
| 31 | + $this->taskProcessingManager = $this->getMockBuilder(IManager::class)->getMock(); |
|
| 32 | 32 | |
| 33 | - $this->check = new TaskProcessingPickupSpeed( |
|
| 34 | - $this->l10n, |
|
| 35 | - $this->taskProcessingManager, |
|
| 36 | - $this->timeFactory, |
|
| 37 | - ); |
|
| 38 | - } |
|
| 33 | + $this->check = new TaskProcessingPickupSpeed( |
|
| 34 | + $this->l10n, |
|
| 35 | + $this->taskProcessingManager, |
|
| 36 | + $this->timeFactory, |
|
| 37 | + ); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function testPass(): void { |
|
| 41 | - $tasks = []; |
|
| 42 | - for ($i = 0; $i < 100; $i++) { |
|
| 43 | - $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 44 | - $task->setStartedAt(0); |
|
| 45 | - if ($i < 15) { |
|
| 46 | - $task->setScheduledAt(60 * 5); // 15% get 5mins |
|
| 47 | - } else { |
|
| 48 | - $task->setScheduledAt(60); // the rest gets 1min |
|
| 49 | - } |
|
| 50 | - $tasks[] = $task; |
|
| 51 | - } |
|
| 52 | - $this->taskProcessingManager->method('getTasks')->willReturn($tasks); |
|
| 40 | + public function testPass(): void { |
|
| 41 | + $tasks = []; |
|
| 42 | + for ($i = 0; $i < 100; $i++) { |
|
| 43 | + $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 44 | + $task->setStartedAt(0); |
|
| 45 | + if ($i < 15) { |
|
| 46 | + $task->setScheduledAt(60 * 5); // 15% get 5mins |
|
| 47 | + } else { |
|
| 48 | + $task->setScheduledAt(60); // the rest gets 1min |
|
| 49 | + } |
|
| 50 | + $tasks[] = $task; |
|
| 51 | + } |
|
| 52 | + $this->taskProcessingManager->method('getTasks')->willReturn($tasks); |
|
| 53 | 53 | |
| 54 | - $this->assertEquals(SetupResult::SUCCESS, $this->check->run()->getSeverity()); |
|
| 55 | - } |
|
| 54 | + $this->assertEquals(SetupResult::SUCCESS, $this->check->run()->getSeverity()); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - public function testFail(): void { |
|
| 58 | - $tasks = []; |
|
| 59 | - for ($i = 0; $i < 100; $i++) { |
|
| 60 | - $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 61 | - $task->setStartedAt(0); |
|
| 62 | - if ($i < 30) { |
|
| 63 | - $task->setScheduledAt(60 * 5); // 30% get 5mins |
|
| 64 | - } else { |
|
| 65 | - $task->setScheduledAt(60); // the rest gets 1min |
|
| 66 | - } |
|
| 67 | - $tasks[] = $task; |
|
| 68 | - } |
|
| 69 | - $this->taskProcessingManager->method('getTasks')->willReturn($tasks); |
|
| 57 | + public function testFail(): void { |
|
| 58 | + $tasks = []; |
|
| 59 | + for ($i = 0; $i < 100; $i++) { |
|
| 60 | + $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 61 | + $task->setStartedAt(0); |
|
| 62 | + if ($i < 30) { |
|
| 63 | + $task->setScheduledAt(60 * 5); // 30% get 5mins |
|
| 64 | + } else { |
|
| 65 | + $task->setScheduledAt(60); // the rest gets 1min |
|
| 66 | + } |
|
| 67 | + $tasks[] = $task; |
|
| 68 | + } |
|
| 69 | + $this->taskProcessingManager->method('getTasks')->willReturn($tasks); |
|
| 70 | 70 | |
| 71 | - $this->assertEquals(SetupResult::WARNING, $this->check->run()->getSeverity()); |
|
| 72 | - } |
|
| 71 | + $this->assertEquals(SetupResult::WARNING, $this->check->run()->getSeverity()); |
|
| 72 | + } |
|
| 73 | 73 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public function testPass(): void { |
| 41 | 41 | $tasks = []; |
| 42 | 42 | for ($i = 0; $i < 100; $i++) { |
| 43 | - $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 43 | + $task = new Task('test', ['test' => 'test'], 'settings', 'user'.$i); |
|
| 44 | 44 | $task->setStartedAt(0); |
| 45 | 45 | if ($i < 15) { |
| 46 | 46 | $task->setScheduledAt(60 * 5); // 15% get 5mins |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | public function testFail(): void { |
| 58 | 58 | $tasks = []; |
| 59 | 59 | for ($i = 0; $i < 100; $i++) { |
| 60 | - $task = new Task('test', ['test' => 'test'], 'settings', 'user' . $i); |
|
| 60 | + $task = new Task('test', ['test' => 'test'], 'settings', 'user'.$i); |
|
| 61 | 61 | $task->setStartedAt(0); |
| 62 | 62 | if ($i < 30) { |
| 63 | 63 | $task->setScheduledAt(60 * 5); // 30% get 5mins |