Codebase: make all API calls customisable by plugins (use Request::processRequest for internal API calls) #9116
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
duplicate
For issues that already existed in our issue tracker and were reported previously.
Milestone
The Piwik analytics platform aims to be a fully customisable analytics platform that . Our Developer Guides explain how to build plugins and modify any part of Piwik (eg. all events one can hook into).
In this issue we focus on making more of the platform possible to customise.
Goal is to modify all internal calls
*::getInstance()->
where the instance is anAPI
, and change them toRequest::processRequest
. Example:API::getInstance()->getMetadata(...)
becomes:Request::processRequest('API.getMetadata', array(...));
When passing through
Request::processRequest
, the API call becomes pluggable by any plugin which can modify the request parameters and / or the returned values / output.The text was updated successfully, but these errors were encountered: