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
https://developers.shopware.com/developers-guide/plugin-quick-start/#subscriber-classes
in the descrioption under the code block
then this would be the file to edit: https://github.com/shopware/devdocs/blob/master/source/developers-guide/plugin-quick-start/index.md#subscriber-classes
maybe you like to create a PR? 😊
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)