From 9f3adaf54fb2b066b026fe897f7e9c0ea27b2500 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 16 Nov 2022 12:09:10 +1300 Subject: [PATCH] API Update deprecations --- src/Solr/CwpSolrConfigStore.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Solr/CwpSolrConfigStore.php b/src/Solr/CwpSolrConfigStore.php index 57d8851..af0310a 100644 --- a/src/Solr/CwpSolrConfigStore.php +++ b/src/Solr/CwpSolrConfigStore.php @@ -2,6 +2,7 @@ namespace CWP\Search\Solr; +use SilverStripe\Dev\Deprecation; use SilverStripe\FullTextSearch\Solr\Solr; use SilverStripe\FullTextSearch\Solr\Stores\SolrConfigStore; @@ -25,6 +26,11 @@ class CwpSolrConfigStore implements SolrConfigStore */ public function __construct($config) { + Deprecation::notice( + '1.2.0', + 'Use SolrConfigStore_Post in silverstripe/fulltextsearch instead', + Deprecation::SCOPE_CLASS + ); $options = Solr::solr_options(); $this->url = implode('', [