config = $config; $this->manager = $manager; } public function getName(): string { return 'Check encryption key format'; } private function shouldRun(): bool { $versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0'); return version_compare($versionFromBeforeUpdate, '20.0.0.1', '<='); } public function run(IOutput $output): void { if (!$this->shouldRun()) { return; } $masterKeyId = $this->config->getAppValue('encryption', 'masterKeyId'); if ($this->manager->isEnabled() || !empty($masterKeyId)) { if ($this->config->getSystemValue('encryption.key_storage_migrated', '') === '') { $this->config->setSystemValue('encryption.key_storage_migrated', false); } } } }