magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
Create an observer for an event doesn't work through the context menu
Describe the bug (*)
It is not possible to create an observer through the context menu
To Reproduce (*)
Steps to reproduce the behavior:
- Go to any class with dispatch method
- Click on event name
- Check missing "Create a Magento Observer" option
Expected behavior (*)
Should work like this https://github.com/magento/magento2-phpstorm-plugin/wiki/1.0.0-Release#create-an-observer-for-an-event
Screenshots

Please complete the following information: (*)
- OS: MacOS
- PhpStorm version: 2022.1
- Plugin Version: 4.3.1
Hi @DmitryFurs. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
Hello, @DmitryFurs!
There are few restrictions for this action. It works in this release, but we can check if there is a bug. Please, attach code of this file here. Not like a screenshot.
Regards,
Hello, @bohdan-harniuk!
This is class \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\Decimal::_prepareIndex()
Is that enough for you?
Hello, @DmitryFurs!
Yes, it is enough for me.
Thank you!
@magento I am working on this