Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/request/DiffusionRequest.php
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | /* -( Creating Requests )-------------------------------------------------- */ | ||||
/** | /** | ||||
* Internal. Use @{method:newFromDictionary}, not this method. | * Internal. Use @{method:newFromDictionary}, not this method. | ||||
* | * | ||||
* @param map Map of parsed data. | * @param map Map of parsed data. | ||||
* @return void | * @return void | ||||
* @task new | * @task new | ||||
*/ | */ | ||||
final private function initializeFromDictionary(array $data) { | final private function initializeFromDictionary(array $data) { | ||||
$blob = idx($data, 'blob'); | |||||
if (strlen($blob)) { | |||||
$blob = self::parseRequestBlob($blob, $this->supportsBranches()); | |||||
$data = $blob + $data; | |||||
} | |||||
$this->path = idx($data, 'path'); | $this->path = idx($data, 'path'); | ||||
$this->line = idx($data, 'line'); | $this->line = idx($data, 'line'); | ||||
$this->initFromConduit = idx($data, 'initFromConduit', true); | $this->initFromConduit = idx($data, 'initFromConduit', true); | ||||
$this->symbolicCommit = idx($data, 'commit'); | $this->symbolicCommit = idx($data, 'commit'); | ||||
if ($this->supportsBranches()) { | if ($this->supportsBranches()) { | ||||
$this->branch = idx($data, 'branch'); | $this->branch = idx($data, 'branch'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |