From bbae3aecca789e3bde2878f05e8d82ad5d064fa6 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 10 Mar 2015 15:34:18 +1300 Subject: Dependency injection in API classes --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 321875df34..90bc9d3cb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,12 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API' * `isIpInRange()` * `getHostByAddr()` +### Deprecations +* `API` classes should no longer have a protected constructor. Classes with a protected constructor will generate a notice in the logs and should expose a public constructor instead. + +### New features +* `API` classes can now use dependency injection in their constructor to inject other instances. + ### New commands * There is now a command `core:purge-old-archive-data` that can be used to manually purge temporary, error-ed and invalidated archives from one or more archive tables. -- cgit v1.2.3