Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

webapi_rest event area isn't mentioned in the Events and observers page #908

Closed
hostep opened this issue Nov 22, 2016 · 5 comments
Closed
Assignees

Comments

@hostep
Copy link
Contributor

hostep commented Nov 22, 2016

Hi

I just wasted 2 hours trying to figure out why a certain event wasn't being observed on the frontend while defining it in my etc/frontend/events.xml file.
Apparently, certain 'frontend' events now should be declared in the etc/webapi_rest/events.xml file.
There is no mentioning of this on the Events and observers page

Is it possible to add this and also explain which events should be declared in that event area?
So other people waste less time then myself when they have to get some work done :)

Thanks!

References from the Magento2 project: magento/magento2#7524 & magento/magento2#1581

@tanberry
Copy link

Ach, sorry @hostep for the wasted time, and a big thanks for letting us know how to prevent others from wasting time in the future. @jcalcaben can you take a look and add the requested info to the Events and observers page and wherever else it might be needed? Pieter, it would be great if you are willing to take a look after James updates the docs, and let us know if it is more clear. Thanks!

@hostep
Copy link
Contributor Author

hostep commented Nov 22, 2016

Tnx @tanberry!

@jcalcaben, I see there are even more area's to be aware of, see:
https://github.com/magento/magento2/blob/develop/lib/internal/Magento/Framework/App/Area.php#L18-L24

But I'm not sure if all of these can and are being used for defining observers...

@jcalcaben
Copy link
Contributor

@hostep Thanks for pointing this out. I will also add Areas as a topic that needs to be written in addition to fixing the doc.

@jcalcaben jcalcaben added the Tracking Created an internal Jira ticket to track work label Jan 9, 2017
magento-cicd2 pushed a commit that referenced this issue Jun 9, 2017
@jeff-matthews
Copy link
Contributor

Tracking the "Areas" doc updates separately. PR #1700 fixes this issue. Thanks @hostep!

@jeff-matthews jeff-matthews removed In progress Tracking Created an internal Jira ticket to track work labels Apr 3, 2018
@hostep
Copy link
Contributor Author

hostep commented Apr 3, 2018

Hi @jeff-matthews, actually PR #1700 only talks about the frontend and adminhtml area's, not about the webapi_rest area or any of the other area's.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants