shopware5/devdocs

wrong callback name in the description under the code example

kokoyroy opened this issue · 5 comments

As defined in getSubscribedEvents the callback is called onFrontendPostDispatch. It takes an Enlight_Controller_ActionEventArgs object as parameter, which holds context about the event - in this case the context of the controller that has been executed.

onFrontendPostDispatch has to be onPostDispatch as in code above

hey @kokoyroy
on which page do you mean?

what is the pr? i am noob :P

you are able to make change suggestions to the documentation code itself 😊 this is called a Pull Request (PR)

https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request