Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Lines | private function applyHeraldRules( | ||||
array $updates, | array $updates, | ||||
HeraldAdapter $adapter_template, | HeraldAdapter $adapter_template, | ||||
array $all_updates) { | array $all_updates) { | ||||
if (!$updates) { | if (!$updates) { | ||||
return; | return; | ||||
} | } | ||||
$adapter_template->setHookEngine($this); | $viewer = $this->getViewer(); | ||||
$adapter_template | |||||
->setHookEngine($this) | |||||
->setActingAsPHID($viewer->getPHID()); | |||||
$engine = new HeraldEngine(); | $engine = new HeraldEngine(); | ||||
$rules = null; | $rules = null; | ||||
$blocking_effect = null; | $blocking_effect = null; | ||||
$blocked_update = null; | $blocked_update = null; | ||||
$blocking_xscript = null; | $blocking_xscript = null; | ||||
foreach ($updates as $update) { | foreach ($updates as $update) { | ||||
$adapter = id(clone $adapter_template) | $adapter = id(clone $adapter_template) | ||||
▲ Show 20 Lines • Show All 1,011 Lines • Show Last 20 Lines |