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