Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codebase: make all API calls customisable by plugins (use Request::processRequest for internal API calls) #9116

Closed
mattab opened this issue Oct 29, 2015 · 1 comment
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

Comments

@mattab
Copy link
Member

mattab commented Oct 29, 2015

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 an API, and change them to Request::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.

@mattab mattab added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Oct 29, 2015
@mattab mattab added this to the 2.15.1 milestone Oct 29, 2015
@tsteur
Copy link
Member

tsteur commented Oct 29, 2015

Duplicate of #7105 ?

@mattab mattab closed this as completed Oct 29, 2015
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants