1 | <?php |
||
2 | /** |
||
3 | * Class SolrIndex|SilverStripe\FullTextSearch\Search\Queries\SolrIndex provide backward compatibility help for |
||
4 | * migrating from the old module |
||
5 | * |
||
6 | * @package SilverStripe\FullTextSearch\Search\Queries |
||
7 | * @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo |
||
8 | * @copyright Copyright (c) 2018 - now() Firesphere & Sheepy |
||
9 | */ |
||
10 | |||
11 | namespace SilverStripe\FullTextSearch\Solr; |
||
12 | |||
13 | use Firesphere\SolrSearch\Indexes\BaseIndex; |
||
14 | use SilverStripe\CMS\Model\SiteTree; |
||
0 ignored issues
–
show
|
|||
15 | |||
16 | /** |
||
17 | * Class SolrIndex |
||
18 | * This class serves as a stub to make migration from Fulltext Search easier |
||
19 | * |
||
20 | * @package SilverStripe\FullTextSearch\Solr |
||
21 | */ |
||
22 | abstract class SolrIndex extends BaseIndex |
||
23 | { |
||
24 | /** |
||
25 | * Add the SiteTree class by default |
||
26 | */ |
||
27 | 5 | public function init() |
|
28 | { |
||
29 | 5 | $this->addClass(SiteTree::class); |
|
30 | 5 | parent::init(); |
|
31 | 5 | } |
|
32 | |||
33 | /** |
||
34 | * Return the classname by default (Not advised) |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 5 | public function getIndexName() |
|
39 | { |
||
40 | 5 | return str_replace('\\', '_', static::class); |
|
41 | } |
||
42 | } |
||
43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths