magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
Add possibility to call core functions in custom code and automate the import process
Is your feature request related to a problem? Please describe. I often have the following workflow:
- I need a specific functionality from the core in my custom code
- So I browse through the core modules until I found what I need, and now I need to import the class into my custom class
- Currently, I'm now copying the fully qualified name of the class, include it manually in my constructor, initialize the property and then go to the spot where I actually need the functionality and call my found function.
- This is a lot of manual work...
Describe the solution you'd like (*)
It would be awesome to have some kind of automatic copy/paste functionality for this issue. So I would love to have a custom copy shortcut, which I can use while I'm in the function which I want to import. Then I go back to my custom class and paste it. The class then gets automatically added to my constructor, the property is initialized and my function is directly called. This would save a lot of time.
Hi @norgeindian. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, 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.
@magento I am working on this