Remedy deprecated dynamic variable declaration

This commit is contained in:
Alexandre Saelens 2023-12-21 09:06:15 +13:00
parent 0f62997e70
commit 7635345054
2 changed files with 27 additions and 1 deletions

View File

@ -10,6 +10,19 @@ namespace SilverStripe\FullTextSearch\Solr\Stores;
*/ */
class SolrConfigStore_File implements SolrConfigStore class SolrConfigStore_File implements SolrConfigStore
{ {
/**
* @var string
*/
protected $remote = '';
/**
* @var string
*/
protected $local = '';
/**
* @param array $config
*/
public function __construct($config) public function __construct($config)
{ {
$this->local = $config['path']; $this->local = $config['path'];
@ -49,4 +62,4 @@ class SolrConfigStore_File implements SolrConfigStore
{ {
return $this->remote . '/' . $index; return $this->remote . '/' . $index;
} }
} }

View File

@ -12,6 +12,19 @@ use SilverStripe\FullTextSearch\Utils\WebDAV;
*/ */
class SolrConfigStore_WebDAV implements SolrConfigStore class SolrConfigStore_WebDAV implements SolrConfigStore
{ {
/**
* @var string
*/
protected $remote = '';
/**
* @var string
*/
protected $url = '';
/**
* @param array $config
*/
public function __construct($config) public function __construct($config)
{ {
$options = Solr::solr_options(); $options = Solr::solr_options();