Skip to content

Commit

Permalink
Refs #4278 Simplifying ArchiveProcessor: moving internal logic to Arc…
Browse files Browse the repository at this point in the history
…hiveProcessor\Loader

ArchiveProcessor becomes a helper class easier to understand for plugin developers
  • Loading branch information
mattab committed Nov 5, 2013
1 parent 09b56ba commit 8a6fad6
Show file tree
Hide file tree
Showing 11 changed files with 596 additions and 474 deletions.
3 changes: 2 additions & 1 deletion core/Archive.php
Expand Up @@ -610,7 +610,8 @@ private function cacheArchiveIdsAfterLaunching($archiveGroups, $plugins)
continue;
}

$processing = new ArchiveProcessor($period, $site, $this->params->getSegment());
$parameters = new ArchiveProcessor\Parameters($period, $site, $this->params->getSegment());
$processing = new ArchiveProcessor\Loader($parameters);

// process for each plugin as well
foreach ($archiveGroups as $plugin) {
Expand Down

0 comments on commit 8a6fad6

Please sign in to comment.