In Craft 2, services were auto-loaded when using the craft()->plugin_serviceName->myMethodName()
signature, but it seems like there's a catch in Craft 3, when using the new MyPlugin::getInstance()->myServiceName->myMethod()
.
I'm working on a business-logic plugin using a local path
repository in my project's composer.json
, and there are a rash of problems that come of this, mainly to do with creating + renaming services, as the service locator seems to cache them pretty aggressively.
How can I ensure these changes are picked up right away?
composer.json
and re-install my plugin (and sometimes edit Craft'splugins.php
cache) every time I changed a service.