config->getValueString('text', 'installed_version'); // Run only if installed version ($appVersion) is lower than specified if (!$appVersion || version_compare($appVersion, '7.0.0-dev.3') !== -1) { return; } $this->documentService->clearAll(); } }