diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-20 08:19:17 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-12 21:05:35 +0300 |
commit | 13e9db553be041ee9b072ab0e7186c30cee0595f (patch) | |
tree | c50c262409ac6e0d27dfe6845288605ebac03767 /plugins/SitesManager/SitesManager.php | |
parent | f6f444ec6a9a2af341812d460c97c189cb5ee04e (diff) |
Make ArchiveInvalidator an immutable service and add it to DI. markArchivesAsInvalidated (or whatever it's called) now returns an instance instead of an array of output messages.
Diffstat (limited to 'plugins/SitesManager/SitesManager.php')
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index 200f268a8a..4b686e2bde 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Common; use Piwik\Archive\ArchiveInvalidator; +use Piwik\Container\StaticContainer; use Piwik\Db; use Piwik\Plugins\PrivacyManager\PrivacyManager; use Piwik\Measurable\Settings\Storage; @@ -69,7 +70,7 @@ class SitesManager extends \Piwik\Plugin // we do not delete logs here on purpose (you can run these queries on the log_ tables to delete all data) Cache::deleteCacheWebsiteAttributes($idSite); - $archiveInvalidator = new ArchiveInvalidator(); + $archiveInvalidator = StaticContainer::get('Piwik\Archive\ArchiveInvalidator'); $archiveInvalidator->forgetRememberedArchivedReportsToInvalidateForSite($idSite); $measurableStorage = new Storage(Db::get(), $idSite); |