forked from ezsystems/ezpublish-kernel
/
Handler.php
49 lines (42 loc) · 1.28 KB
/
Handler.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* This file is part of the eZ Publish Kernel package
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
namespace eZ\Publish\Core\Search\Solr;
use eZ\Publish\SPI\Search\Handler as HandlerInterface;
use eZ\Publish\SPI\Search\Content\Handler as ContentSearchHandler;
use eZ\Publish\SPI\Search\Content\Location\Handler as LocationSearchHandler;
/**
* The main handler for the Solr Search Engine
*/
class Handler implements HandlerInterface
{
/**
* @var \eZ\Publish\SPI\Search\Content\Handler
*/
protected $contentSearchHandler;
/**
* @var \eZ\Publish\SPI\Search\Content\Location\Handler
*/
protected $locationSearchHandler;
public function __construct(
ContentSearchHandler $contentSearchHandler,
LocationSearchHandler $locationSearchHandler
)
{
$this->contentSearchHandler = $contentSearchHandler;
$this->locationSearchHandler = $locationSearchHandler;
}
public function contentSearchHandler()
{
return $this->contentSearchHandler;
}
public function locationSearchHandler()
{
return $this->locationSearchHandler;
}
}