I'm trying to do this:
<type name="Magento\Payment\Model\MethodList"> <plugin name="a_name_plugin" type="Mynamespace\Mymodule\Plugin\Model\Payment\MethodList\Plugin" sortOrder="10"/> </type>
It isn't activated if I place this declaration in
But it works in
I want it to be active only on frontend.
Why it would not work from
etc/frontend/di.xml or how to make it work ?
Using Magento 2.0.7 Magento mode is developer. Cache should not be a problem. var/generation/* was cleaned a few times.