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

To modify the query and response to Makaira API, with DI. #49

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

tmloberon
Copy link
Contributor

@tmloberon tmloberon commented Apr 20, 2023

Some events were added to process the request. With the Symfony DI.
So you don't have to activate another OXID module.

There are the Event:

  • makaira.response.autosuggester (\Makaira\Connect\Event\AutoSuggesterResponseEvent::NAME)
  • makaira.response.search (\Makaira\Connect\Event\SearchResponseEvent::NAME)
  • makaira.request.modifier.query.search (\Makaira\Connect\Event\ModifierQueryRequestEvent::NAME_SEARCH)
  • makaira.request.modifier.query.autosuggester (\Makaira\Connect\Event\ModifierQueryRequestEvent::NAME_AUTOSUGGESTER)

With UnitTests
I have not tested it on version 3x, because the dispatch function changes and I have not installed a new OXID.

@tmloberon tmloberon force-pushed the feature/more_events_to_modifi_query_respone branch 2 times, most recently from 6353491 to 055aa1f Compare April 20, 2023 12:10
@tmloberon tmloberon force-pushed the feature/more_events_to_modifi_query_respone branch from 055aa1f to 90a94a4 Compare April 20, 2023 13:10
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