1 | <?php |
||
25 | class ElasticsearchRouteProvider implements RouteProviderInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var array Route map configuration to map Elasticsearch types and Controllers |
||
29 | */ |
||
30 | private $routeMap; |
||
31 | |||
32 | /** |
||
33 | * @var Manager |
||
34 | */ |
||
35 | private $manager; |
||
36 | |||
37 | /** |
||
38 | * @var MetadataCollector |
||
39 | */ |
||
40 | private $collector; |
||
41 | |||
42 | /** |
||
43 | * ElasticsearchRouteProvider constructor. |
||
44 | * |
||
45 | * @param array $routeMap |
||
46 | */ |
||
47 | public function __construct(array $routeMap = [], $collector) |
||
52 | |||
53 | /** |
||
54 | * Returns Elasticsearch manager instance that was set in app/config.yml. |
||
55 | * |
||
56 | * @return Manager |
||
57 | */ |
||
58 | public function getManager() |
||
62 | |||
63 | /** |
||
64 | * @param Manager $manager |
||
65 | */ |
||
66 | public function setManager(Manager $manager) |
||
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | public function getRouteCollectionForRequest(Request $request) |
||
106 | |||
107 | /** |
||
108 | * @inheritDoc |
||
109 | */ |
||
110 | public function getRouteByName($name) |
||
114 | |||
115 | /** |
||
116 | * @inheritDoc |
||
117 | */ |
||
118 | public function getRoutesByNames($names) |
||
122 | } |
||
123 |