-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathext_localconf.php
21 lines (16 loc) · 1007 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$boot = function ($extensionKey) {
if (class_exists(\ApacheSolrForTypo3\Solr\Search\SearchComponentManager::class)) {
\ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('fluid_grouping', \ApacheSolrForTypo3\Solrfluidgrouping\Search\GroupingComponent::class);
}
if (class_exists(\ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Result\Parser\ResultParserRegistry::class)) {
/** @var $parserRegistry */
$parserRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Result\Parser\ResultParserRegistry::class);
if(!$parserRegistry->hasParser(\ApacheSolrForTypo3\Solrfluidgrouping\Domain\Search\ResultSet\Grouping\Parser\GroupedResultParser::class, 200))
{
$parserRegistry->registerParser(\ApacheSolrForTypo3\Solrfluidgrouping\Domain\Search\ResultSet\Grouping\Parser\GroupedResultParser::class, 200);
}
}
};
$boot($_EXTKEY);
unset($boot);