Magento 2 What is the fastest way to get construction changes?
-
07-03-2021 - |
Solution
setup:di:compile
=> Generates DI (Dependency injection) configuration and all missing classes that can be auto-generated
So whenever you change in constructor you need to run setup:di:compile
command to generate auto-generated interceptor files in generated directory.
If you want to bypass this one for development phase you can edit it's interceptor file located in generated/code/Vendor/Module/...
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange