Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--core/Period.php12
-rw-r--r--core/Plugin.php3
3 files changed, 7 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f1a8eb4e96..d252e23600 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
This is a changelog for Piwik platform developers. All changes for our HTTP API's, Plugins, Themes, etc will be listed here.
+## Piwik 2.12.0
+
+### Breaking Changes
+* The deprecated method `Period::factory()` has been removed. Use `Period\Factory` instead.
+
## Piwik 2.11.0
### Breaking Changes
diff --git a/core/Period.php b/core/Period.php
index d4044ed68e..b924e981c8 100644
--- a/core/Period.php
+++ b/core/Period.php
@@ -9,7 +9,6 @@
namespace Piwik;
use Piwik\Container\StaticContainer;
-use Piwik\Period\Factory as PeriodFactory;
use Piwik\Period\Range;
use Piwik\Translation\Translator;
@@ -66,17 +65,6 @@ abstract class Period
}
/**
- * @deprecated Use Factory::build instead
- * @param $period
- * @param $date
- * @return Period
- */
- public static function factory($period, $date)
- {
- return PeriodFactory::build($period, $date);
- }
-
- /**
* Returns true if `$dateString` and `$period` represent multiple periods.
*
* Will return true for date/period combinations where date references multiple
diff --git a/core/Plugin.php b/core/Plugin.php
index af564a002b..bb361b5bb5 100644
--- a/core/Plugin.php
+++ b/core/Plugin.php
@@ -8,6 +8,7 @@
*/
namespace Piwik;
+use Piwik\Container\StaticContainer;
use Piwik\Plugin\Dependency;
use Piwik\Plugin\MetadataLoader;
@@ -359,7 +360,7 @@ class Plugin
$this->cache->save($cacheId, $classname);
}
- return new $classname;
+ return StaticContainer::get($classname);
}
public function findMultipleComponents($directoryWithinPlugin, $expectedSubclass)