-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpstorm meta plugin file #15
Comments
This functionality would be useful, but you should add support for namespace PHPSTORM_META {
override(\Magento\Framework\ObjectManagerInterface::get(0), map(['' => '@']));
override(\Magento\Framework\ObjectManagerInterface::create(0), map(['' => '@']));
} |
Would this go in your Magento project or would it be inside the plugin itself? Update: works great inside a Magento project root. Would phpstorm-library-plugin help to delegate it to any Magento project from inside plugin repo itself? |
It can be provided via the plugin (which would be the optimal solution) but you can also add it manually to your project by creating a file at: |
By adding the following
.phpstorm.meta.php
into the root of the repo, you can get better code completion when using magento's DI ObjectManager get method.It looks like this file can be easily added into the system via the library root feature shown here: https://github.com/artspb/phpstorm-library-plugin
The text was updated successfully, but these errors were encountered: