-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] Move SearchComponents to PSR-14 events #3675
Comments
bmack
added a commit
to bmack/ext-solr
that referenced
this issue
Jun 5, 2023
All Search Components have been reworked and the Component system have been moved to a PSR-14 Event `AfterSearchQueryHasBeenPreparedEvent`. This way, the registration works just as other PSR-14 events, and Dependency Injection is now used consistently across all Componenents. The Component System is now merged with the previous hook `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['modifySearchQuery']` and the `ApacheSolrForTypo3\Solr\Search\Modifier` interface. Two other hooks have been migrated as well. Tests who actually tested the registration have been removed, further existing tests have been adapted. Fixes: TYPO3-Solr#3675
dkd-kaehm
pushed a commit
to bmack/ext-solr
that referenced
this issue
Jun 5, 2023
All Search Components have been reworked and the Component system have been moved to a PSR-14 Event `AfterSearchQueryHasBeenPreparedEvent`. This way, the registration works just as other PSR-14 events, and Dependency Injection is now used consistently across all Componenents. The Component System is now merged with the previous hook `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['modifySearchQuery']` and the `ApacheSolrForTypo3\Solr\Search\Modifier` interface. Two other hooks have been migrated as well. Tests who actually tested the registration have been removed, further existing tests have been adapted. Fixes: TYPO3-Solr#3675
dkd-kaehm
pushed a commit
that referenced
this issue
Jun 5, 2023
All Search Components have been reworked and the Component system have been moved to a PSR-14 Event `AfterSearchQueryHasBeenPreparedEvent`. This way, the registration works just as other PSR-14 events, and Dependency Injection is now used consistently across all Componenents. The Component System is now merged with the previous hook `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['modifySearchQuery']` and the `ApacheSolrForTypo3\Solr\Search\Modifier` interface. Two other hooks have been migrated as well. Tests who actually tested the registration have been removed, further existing tests have been adapted. Fixes: #3675
dkd-friedrich
added a commit
to dkd-friedrich/ext-solr
that referenced
this issue
Feb 6, 2024
AccessComponent expects to find the TypoScriptFrontendController in $GLOBALS['TSFE'], and will cause an exception in CLI context. To prevent this an additional check for TSFE in AccessComponent is added, similiar to other components like LastSearchesComponent. Relates: TYPO3-Solr#3675 Resolves: TYPO3-Solr#3944
dkd-friedrich
added a commit
to dkd-friedrich/ext-solr
that referenced
this issue
Feb 6, 2024
AccessComponent expects to find the TypoScriptFrontendController in $GLOBALS['TSFE'], and will cause an exception in CLI context. To prevent this an additional check for TSFE in AccessComponent is added, similiar to other components like LastSearchesComponent. Relates: TYPO3-Solr#3675 Resolves: TYPO3-Solr#3944
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should reduce our own logic and move to TYPO3 standards as much as possible. All hooks in SearchResultSetService should actually be moved to a unified PSR-14-based setup.
The text was updated successfully, but these errors were encountered: