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:T12] Replace SignalSlot with EventDispatcher #3452

Conversation

3l73
Copy link
Collaborator

@3l73 3l73 commented Jan 16, 2023

What this pr does

This pull request replaces the old signal slot technology with the PSR-14 event dispatcher.

  • Signal beforeIndexItems replaced by event \ApacheSolrForTypo3\Solr\Event\Indexing\BeforeIndexItemsEvent
  • Signal beforeIndexItem replaced by event \ApacheSolrForTypo3\Solr\Event\Indexing\BeforeIndexItemEvent
  • Signal afterIndexItem replaced by event \ApacheSolrForTypo3\Solr\Event\Indexing\AfterIndexItemEvent
  • Signal afterIndexItems replaced by event \ApacheSolrForTypo3\Solr\Event\Indexing\AfterIndexItemsEvent
  • Signal resultsAction replaced by event \ApacheSolrForTypo3\Solr\Event\Search\AfterSearchEvent
  • Signal formAction replaced by event \ApacheSolrForTypo3\Solr\Event\Search\FormEvent
  • Signal frequentlySearchedAction replaced by event \ApacheSolrForTypo3\Solr\Event\Search\AfterFrequentlySearchedEvent
  • Signal optionsParsed replaced by event \ApacheSolrForTypo3\Solr\Event\Parser\AfterFacetParsedEvent

How to test

Please add a testing instruction here

Fixes: #3437

@3l73 3l73 self-assigned this Jan 16, 2023
@3l73 3l73 added 12LTS BACKPORTABLE The changes SHOULD be backported BREAKING CHANGE labels Jan 16, 2023
@3l73 3l73 linked an issue Jan 16, 2023 that may be closed by this pull request
1 task
@3l73 3l73 changed the title [Task] Replace SignalSlot with EventDispatcher [TASK:T12] Replace SignalSlot with EventDispatcher Jan 17, 2023
@dkd-kaehm dkd-kaehm force-pushed the task/3376-TYPO3_12_compatibility branch from cdfc1ac to c444f0e Compare January 19, 2023 14:53
@dkd-kaehm dkd-kaehm force-pushed the task/3437-Replace_signal_slot_with_event_dispatcher branch from fb5cc50 to f84d097 Compare January 19, 2023 17:09
@dkd-kaehm
Copy link
Collaborator

Please do rebase without pulling the state(I did no changes!). The commit is because i tried the GitHub UI "resolve conflicts", this creates the merge commit :/ which is not fine for our flows.
If it is ready for review, please don't forget to unmark the "draft" state.

@3l73 3l73 force-pushed the task/3437-Replace_signal_slot_with_event_dispatcher branch from f84d097 to cc6f208 Compare January 20, 2023 11:19
@3l73 3l73 marked this pull request as ready for review January 20, 2023 11:19
dkd-kaehm
dkd-kaehm previously approved these changes Jan 20, 2023
The signal-slot technology was deprecated and now replaced threw the EventDispatcher.

Remove old documentation about signal slot.

Resolves: TYPO3-Solr#3376
@dkd-kaehm dkd-kaehm force-pushed the task/3437-Replace_signal_slot_with_event_dispatcher branch from cc6f208 to 4a820d4 Compare January 20, 2023 12:58
@dkd-kaehm dkd-kaehm merged commit 4e0f1e2 into TYPO3-Solr:task/3376-TYPO3_12_compatibility Jan 20, 2023
@dkd-kaehm dkd-kaehm removed the BACKPORTABLE The changes SHOULD be backported label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK] Replace Signals with PSR-14 events
2 participants