Bulk replacement of class constants
Hi,
I have a Symfony 4 project which contains a few thousand references to ->getRepository('bundle:class'). All of these should be refactored to class constants.
The plugin automatically offers the replacement through the context menu, however I haven't found a way to apply these changes in bulk.
Is there any way to do this?
Thanks
- yes there is. press ALT+enter in context
- but other then form types class converting i never implemented full inspections which allowing them to run project wide; maybe quick win for next update
but also the good "old" rectorphp provide this also:
https://github.com/rectorphp/rector-doctrine/blob/main/docs/rector_rules_overview.md#entityaliastoclassconstantreferencerector
For single replacements I already have this keybound, being able to run this as a project-wide inspection would be a great addition. Thanks for taking this into consideration.