clientRepository = $clientRepository; } public function isAvailable(): bool { try { return $this->clientRepository->get()->isSystemPackageAvailable(); } catch (NotAmastySearchEngine $e) { return true; } } public function generateMessage(): string { $client = $this->clientRepository->get(); return __('Elasticsearch package is not installed. Please, run the following command in the SSH: composer require %1 ^%2. You can check Magento system requirements here', $client->getSystemPackageName(), $client->getNeededSystemPackageVersion())->render(); } }