Skip to content
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] Remove UriStrategy logic and move to PSR-14 event #3662

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

bmack
Copy link
Collaborator

@bmack bmack commented Jun 2, 2023

What this pr does

The UriStrategy concept was needed to generate Frontend URLs in order to index a frontend page.

This concept was used in TYPO3 v9 to support site-based routing and non-site-based projects.

This has now been removed as TYPO3 Core v11+ does only support site-based frontend page resolving.

For this reason, the "UriStrategyFactory" and all the handling has been removed, and the "TYPO3SiteStrategy" has been renamed to "PageUriBuilder".

The hook logic to modify the indexing URL
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueuePageIndexer']['dataUrlModifier'] and the according interface "PageIndexerDataUrlModifier" has been removed and replaced by a new PSR-14 event:
ApacheSolrForTypo3\Solr\Event\Indexing\AfterFrontendPageUriForIndexingHasBeenGeneratedEvent".

Usages of UriHelper have been reduced in favor of PSR-7 UriInterface.

IntegrationTests for the new Event have been added.

Relates: #3437

The UriStrategy concept was needed to generate
Frontend URLs in order to index a frontend page.

This concept was used in TYPO3 v9 to support site-based
routing and non-site-based projects.

This has now been removed as TYPO3 Core v11+ does only support
site-based frontend page resolving.

For this reason, the "UriStrategyFactory" and all the handling
has been removed, and the "TYPO3SiteStrategy" has been renamed
to "PageUriBuilder".

The hook logic to modify the indexing URL
`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueuePageIndexer']['dataUrlModifier']`
and the according interface "PageIndexerDataUrlModifier" has been
removed and replaced by a new PSR-14 event:
`ApacheSolrForTypo3\Solr\Event\Indexing\AfterFrontendPageUriForIndexingHasBeenGeneratedEvent".

Usages of UriHelper have been reduced in favor of PSR-7 UriInterface.

IntegrationTests for the new Event have been added.
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dkd-kaehm dkd-kaehm merged commit dc6b946 into TYPO3-Solr:main Jun 2, 2023
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants