1 | <?php |
||
39 | abstract class AbstractBaseController extends ActionController |
||
40 | { |
||
41 | /** |
||
42 | * @var ContentObjectRenderer |
||
43 | */ |
||
44 | private $contentObjectRenderer; |
||
45 | |||
46 | /** |
||
47 | * @var TypoScriptFrontendController |
||
48 | */ |
||
49 | protected $typoScriptFrontendController; |
||
50 | |||
51 | /** |
||
52 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface |
||
53 | */ |
||
54 | protected $configurationManager; |
||
55 | |||
56 | /** |
||
57 | * @var SolrConfigurationManager |
||
58 | */ |
||
59 | private $solrConfigurationManager; |
||
60 | |||
61 | /** |
||
62 | * The configuration is private if you need it please get it from the controllerContext. |
||
63 | * |
||
64 | * @var TypoScriptConfiguration |
||
65 | */ |
||
66 | protected $typoScriptConfiguration; |
||
67 | |||
68 | /** |
||
69 | * @var \ApacheSolrForTypo3\Solr\Mvc\Controller\SolrControllerContext |
||
70 | */ |
||
71 | protected $controllerContext; |
||
72 | |||
73 | /** |
||
74 | * @var \ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSetService |
||
75 | */ |
||
76 | protected $searchService; |
||
77 | |||
78 | /** |
||
79 | * @var \ApacheSolrForTypo3\Solr\Domain\Search\SearchRequestBuilder |
||
80 | */ |
||
81 | protected $searchRequestBuilder; |
||
82 | |||
83 | /** |
||
84 | * @var bool |
||
85 | */ |
||
86 | 34 | protected $resetConfigurationBeforeInitialize = true; |
|
87 | |||
88 | 34 | /** |
|
89 | 34 | * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager |
|
90 | 34 | * @return void |
|
91 | */ |
||
92 | public function injectConfigurationManager(ConfigurationManagerInterface $configurationManager) |
||
97 | 1 | ||
98 | 1 | /** |
|
99 | * @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObjectRenderer |
||
100 | */ |
||
101 | public function setContentObjectRenderer($contentObjectRenderer) |
||
105 | |||
106 | /** |
||
107 | * @return \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer |
||
108 | */ |
||
109 | public function getContentObjectRenderer() |
||
113 | 34 | ||
114 | 34 | /** |
|
115 | * @param SolrConfigurationManager $configurationManager |
||
116 | */ |
||
117 | public function injectSolrConfigurationManager(SolrConfigurationManager $configurationManager) |
||
121 | 17 | ||
122 | 17 | /** |
|
123 | * @param boolean $resetConfigurationBeforeInitialize |
||
124 | */ |
||
125 | public function setResetConfigurationBeforeInitialize($resetConfigurationBeforeInitialize) |
||
129 | |||
130 | 34 | /** |
|
131 | * Initialize the controller context |
||
132 | * |
||
133 | 34 | * @return \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext ControllerContext to be passed to the view |
|
134 | 34 | * @api |
|
135 | 34 | */ |
|
136 | 34 | protected function buildControllerContext() |
|
151 | |||
152 | 34 | /** |
|
153 | 17 | * Initialize action |
|
154 | */ |
||
155 | protected function initializeAction() |
||
193 | 34 | ||
194 | /** |
||
195 | * Inject settings of plugin.tx_solr |
||
196 | 34 | * |
|
197 | * @return void |
||
198 | */ |
||
199 | 34 | protected function initializeSettings() |
|
209 | |||
210 | /** |
||
211 | 34 | * Initialize the Solr connection and |
|
212 | 34 | * test the connection through a ping |
|
213 | */ |
||
214 | 34 | protected function initializeSearch() |
|
222 | |||
223 | /** |
||
224 | * @return SearchRequestBuilder |
||
225 | */ |
||
226 | protected function getSearchRequestBuilder() |
||
234 | } |
||
235 |