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

Use DI so plugins can change Custom Piwik JS #11717

Merged
merged 4 commits into from May 18, 2017
Merged

Use DI so plugins can change Custom Piwik JS #11717

merged 4 commits into from May 18, 2017

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 18, 2017

As per title

@tsteur tsteur added c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review labels May 18, 2017
@tsteur tsteur added this to the 3.0.5 milestone May 18, 2017
@tsteur tsteur added Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. Needs Review PRs that need a code review and removed Needs Review PRs that need a code review Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. labels May 18, 2017
* @param bool &$shouldAddFile Decides whether the tracker file belonging to the given plugin should be added or not.
* @param string $pluginName The name of the plugin this file belongs to
*/
Piwik::postEvent('CustomPiwikJs.shouldAddTrackerFile', array(&$shouldAddFile, $pluginName));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: I was also thinking about posting the event here: https://github.com/piwik/piwik/blob/3.0.4/plugins/CustomPiwikJs/TrackingCode/PiwikJsManipulator.php#L33 but then decided to post it here instead. This is in case the list of files will be also used for something else. Eg if there was a command to list which files were included in piwik.js etc. Can also change it if needed

@mattab mattab merged commit 70c9e4c into 3.x-dev May 18, 2017
@mattab mattab deleted the trackerupdate branch May 18, 2017 22:34
@mattab
Copy link
Member

mattab commented May 18, 2017

LGTM

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. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants