Remedy deprecated dynamic variable declaration (#354)

Co-authored-by: Michal Kleiner <mk@011.nz>
This commit is contained in:
Alex Saelens 2024-01-15 15:24:13 +13:00 committed by GitHub
parent cf24b84ad1
commit 49a829f7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

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

View File

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