1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace eZ\Publish\Core\Event; |
6
|
|
|
|
7
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
8
|
|
|
use eZ\Publish\API\Repository\SearchService as SearchServiceInterface; |
9
|
|
|
use eZ\Publish\API\Repository\Values\Content\LocationQuery; |
10
|
|
|
use eZ\Publish\API\Repository\Values\Content\Query; |
11
|
|
|
use eZ\Publish\API\Repository\Values\Content\Query\Criterion; |
12
|
|
|
|
13
|
|
|
class SearchService implements SearchServiceInterface |
14
|
|
|
{ |
15
|
|
|
/** @var Symfony\Component\EventDispatcher\EventDispatcherInterface */ |
16
|
|
|
protected $eventDispatcher; |
17
|
|
|
|
18
|
|
|
public function __construct(SearchServiceInterface $innerService, EventDispatcherInterface $eventDispatcher) |
|
|
|
|
19
|
|
|
{ |
20
|
|
|
parent::__construct($innerRepository); |
|
|
|
|
21
|
|
|
|
22
|
|
|
$this->eventDispatcher = $eventDispatcher; |
|
|
|
|
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
public function findContent(Query $query, array $languageFilter = [], $filterOnUserPermissions = true) |
26
|
|
|
{ |
27
|
|
|
parent::findContent($query, $languageFilter, $filterOnUserPermissions); |
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
public function findContentInfo(Query $query, array $languageFilter = [], $filterOnUserPermissions = true) |
31
|
|
|
{ |
32
|
|
|
parent::findContentInfo($query, $languageFilter, $filterOnUserPermissions); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
public function findSingle(Criterion $filter, array $languageFilter = [], $filterOnUserPermissions = true) |
36
|
|
|
{ |
37
|
|
|
parent::findSingle($filter, $languageFilter, $filterOnUserPermissions); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
public function suggest($prefix, $fieldPaths = [], $limit = 10, Criterion $filter = null) |
41
|
|
|
{ |
42
|
|
|
parent::suggest($prefix, $fieldPaths, $limit, $filter); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
public function findLocations(LocationQuery $query, array $languageFilter = [], $filterOnUserPermissions = true) |
46
|
|
|
{ |
47
|
|
|
parent::findLocations($query, $languageFilter, $filterOnUserPermissions); |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function supports($capabilityFlag) |
51
|
|
|
{ |
52
|
|
|
parent::supports($capabilityFlag); |
53
|
|
|
} |
54
|
|
|
} |
55
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.