Rule actions no longer need to know the journal at construction time. This is easier.

This commit is contained in:
James Cole
2016-02-17 19:56:05 +01:00
parent 5f9c61c4b4
commit 1e799402ee
13 changed files with 75 additions and 75 deletions

View File

@@ -87,8 +87,8 @@ class Processor
*/
foreach ($this->actions as $action) {
/** @var ActionInterface $actionClass */
$actionClass = ActionFactory::getAction($action, $this->journal);
$actionClass->act();
$actionClass = ActionFactory::getAction($action);
$actionClass->act($this->journal);
if ($action->stop_processing) {
break;
}