Skip to content

Commit

Permalink
Merge pull request #50 from creative-commoners/pulls/1/depr-messages
Browse files Browse the repository at this point in the history
API Update deprecations
  • Loading branch information
GuySartorelli authored Nov 20, 2022
2 parents 1ff8d45 + 9f3adaf commit 8995bf9
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 8995bf9

Please sign in to comment.