diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-10 08:52:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-10 08:52:44 +0300 |
commit | 98510ab6ee3a210f9b9ef85b5f74d88c2c3a69e2 (patch) | |
tree | 1475280fdf46f85f4b65ef64103351f5dd167ef3 /plugins/SitesManager | |
parent | 2c80f5bc4bf655b95c0517af9d8e88d0a8195ae7 (diff) |
Rename Archive\Invalidator to ArchiveInvalidator and Archive\Purger for ArchivePurger for clarity.
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 4 | ||||
-rw-r--r-- | plugins/SitesManager/tests/Integration/SitesManagerTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index d88c2e7c41..ca47a50540 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -7,7 +7,7 @@ * */ namespace Piwik\Plugins\SitesManager; -use Piwik\Archive\Invalidator; +use Piwik\Archive\ArchiveInvalidator; use Piwik\Tracker\Cache; /** @@ -38,7 +38,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 Invalidator(); + $archiveInvalidator = new ArchiveInvalidator(); $archiveInvalidator->forgetRememberedArchivedReportsToInvalidateForSite($idSite); } diff --git a/plugins/SitesManager/tests/Integration/SitesManagerTest.php b/plugins/SitesManager/tests/Integration/SitesManagerTest.php index 9fc69fdfde..1ba60ce972 100644 --- a/plugins/SitesManager/tests/Integration/SitesManagerTest.php +++ b/plugins/SitesManager/tests/Integration/SitesManagerTest.php @@ -10,7 +10,7 @@ namespace Piwik\Plugins\SitesManager\tests\Integration; use Piwik\Access; use Piwik\Cache; -use Piwik\Archive\Invalidator; +use Piwik\Archive\ArchiveInvalidator; use Piwik\Date; use Piwik\Plugins\SitesManager\SitesManager; use Piwik\Tests\Framework\Fixture; @@ -56,7 +56,7 @@ class SitesManagerTest extends IntegrationTestCase public function test_onSiteDeleted_shouldRemoveRememberedArchiveReports() { - $archive = new Invalidator(); + $archive = new ArchiveInvalidator(); $archive->rememberToInvalidateArchivedReportsLater($this->siteId, Date::factory('2014-04-05')); $archive->rememberToInvalidateArchivedReportsLater($this->siteId, Date::factory('2014-04-06')); $archive->rememberToInvalidateArchivedReportsLater(4949, Date::factory('2014-04-05')); |