2.0.0 Release - magento/magento2-phpstorm-plugin GitHub Wiki
What's new in Magento PHPStorm Plugin 2.0.0 (2.0.1)
This release contains code generators for UI components, extended code completion and inspections, fixed bugs.
Code generation
Inject a View Model action
The new action for adding a view model to a block and a reference block from the context menu.
Override in Theme action
The new action for coping a view file to the appropriate place in a custom place.
New UI Component Grid
The new action for creating a UI Component Grid (Listing).
Action creates the following files:
- Action Controller PHP Class
- menu.xml
- routes.xml
- acl.xml
- Data Provider PHP Class
- Layout file
- UI component file
Example of filling out the form:
Result:
New UI Component Form
The new action for creating a UI Component Form (MVP).
Action creates the following files:
- Buttons PHP Classes
- Save Action Controller PHP Class
- View Action Controller PHP Class
- routes.xml
- acl.xml
- Data Provider PHP Class (or di.xml declaration)
- Layout file
- UI component file
Example of filling out the form:
Result:
Code inspection
ACL resource inspection
Inspection check ACL resource with a unique identifier to have a title
attribute.
Reference navigation/completion
PHP class and method reference in the crontab.xml
Parent menu item reference in the menu.xml
Updates
Adjusted module version to the module.xml
Added the setup_version
attribute to the module.xml
for Magento > 2.3.0
Bugfixes
- Fixed support of variadic arguments to plugin declaration inspection
- Fixed missing first letter name in
composer.json
- Fixed the CLI command namespace
- Fixed endless loop of notifications on launch
- Fix
composer.json
generation with module dependency that doesn't havecomposer.json