I want to rewrite activate function of AccountManagement.I don’t know how to proceed.
A public interface is a set of code that third-party developers can call, implement, or pluginize. Magento guarantees that this code will not change in subsequent releases without a major version change.
Public interfaces for a module reside in the Api folder for a module. For example, the public interfaces for the Customer module reside in the app/code/Magento/Customer/Api folder. Third-party developers should use only these interfaces. You can use other interfaces but Magento does not guarantee that other interface will not be modified or removed in subsequent releases.
1.I need to rewrite AccountManagementInterface or AccountManagement?
2.It is necessary to use di.xml?
3.following is correct?
<preference for="Magento\Customer\Api\AccountManagementInterface" type="Mynamespace\Mymodule\Model\AccountManagement" />
Thanks in Advance.