6 declare(strict_types=1);
21 private $searchEngineResolver;
29 \
Magento\Framework\Search\EngineResolverInterface $searchEngineResolver,
30 \
Magento\Framework\Notification\NotifierInterface $notifier
32 $this->searchEngineResolver = $searchEngineResolver;
33 $this->notifier = $notifier;
41 if ($this->searchEngineResolver->getCurrentSearchEngine() ===
'mysql') {
43 Catalog Search is currently configured to use the MySQL engine, which has been deprecated. Consider migrating to one of
44 the Elasticsearch engines now to ensure there are no service interruptions during your next upgrade.
47 $this->notifier->addNotice(
__(
'Deprecation Notice'),
__(
$message));
__construct(\Magento\Framework\Search\EngineResolverInterface $searchEngineResolver, \Magento\Framework\Notification\NotifierInterface $notifier)