-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!!![TASK] Configuration option enableRouteEnhancer
EXT:solr offers the possibility to create speaking URLs for Solr facets, but as this feature requires additional configuration and costly processing this feature is now disabled by default. If you've already used the route enhancer you must set option "enableRouteEnhancer": $TYPO3_CONF_VARS['EXTENSIONS']['solr']['enableRouteEnhancer'] Resolves: #3810
- Loading branch information
1 parent
3c402b4
commit 529b21a
Showing
6 changed files
with
70 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
<?php | ||
|
||
/** @noinspection PhpFullyQualifiedNameUsageInspection */ | ||
return [ | ||
'frontend' => [ | ||
'apache-solr-for-typo3/page-indexer-initialization' => [ | ||
'target' => \ApacheSolrForTypo3\Solr\Middleware\PageIndexerInitialization::class, | ||
'before' => ['typo3/cms-frontend/tsfe'], | ||
'after' => ['typo3/cms-core/normalized-params-attribute'], | ||
], | ||
'apache-solr-for-typo3/solr-route-enhancer' => [ | ||
'target' => \ApacheSolrForTypo3\Solr\Middleware\SolrRoutingMiddleware::class, | ||
'before' => [ | ||
'typo3/cms-frontend/site', | ||
], | ||
], | ||
$requestMiddlewares = [ | ||
'apache-solr-for-typo3/page-indexer-initialization' => [ | ||
'target' => \ApacheSolrForTypo3\Solr\Middleware\PageIndexerInitialization::class, | ||
'before' => ['typo3/cms-frontend/tsfe'], | ||
'after' => ['typo3/cms-core/normalized-params-attribute'], | ||
], | ||
]; | ||
|
||
$extensionConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( | ||
\ApacheSolrForTypo3\Solr\System\Configuration\ExtensionConfiguration::class | ||
); | ||
if ($extensionConfiguration->getIsRouteEnhancerEnabled()) { | ||
$requestMiddlewares['apache-solr-for-typo3/solr-route-enhancer'] = [ | ||
'target' => \ApacheSolrForTypo3\Solr\Middleware\SolrRoutingMiddleware::class, | ||
'before' => [ | ||
'typo3/cms-frontend/site', | ||
], | ||
]; | ||
} | ||
|
||
return [ | ||
'frontend' => $requestMiddlewares, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters