Skip to content

Commit

Permalink
API Update deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 15, 2022
1 parent 1ff8d45 commit 9f3adaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Solr/CwpSolrConfigStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace CWP\Search\Solr;

use SilverStripe\Dev\Deprecation;
use SilverStripe\FullTextSearch\Solr\Solr;
use SilverStripe\FullTextSearch\Solr\Stores\SolrConfigStore;

Expand All @@ -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('', [
Expand Down

0 comments on commit 9f3adaf

Please sign in to comment.