config = $config; $this->manager = $manager; } public function getName(): string { return 'Clear access cache of projects'; } private function shouldRun(): bool { $versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0'); return version_compare($versionFromBeforeUpdate, '17.0.0.3', '<='); } public function run(IOutput $output): void { if ($this->shouldRun()) { $this->manager->invalidateAccessCacheForAllCollections(); } } }