Differential D21644 Diff 51512 src/applications/drydock/blueprint/DrydockAlmanacServiceHostBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockAlmanacServiceHostBlueprintImplementation.php
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | if (!$this->services) { | ||||
} | } | ||||
$this->services = $services; | $this->services = $services; | ||||
} | } | ||||
return $this->services; | return $this->services; | ||||
} | } | ||||
private function getActive(array $services) { | private function getActiveBindings(array $services) { | ||||
assert_instances_of($services, 'AlmanacService'); | assert_instances_of($services, 'AlmanacService'); | ||||
$bindings = array_mergev(mpull($services, 'getActiveBindings')); | $bindings = array_mergev(mpull($services, 'getActiveBindings')); | ||||
return mpull($bindings, null, 'getPHID'); | return mpull($bindings, null, 'getPHID'); | ||||
} | } | ||||
private function loadFreeBindings(DrydockBlueprint $blueprint) { | private function loadFreeBindings(DrydockBlueprint $blueprint) { | ||||
if ($this->freeBindings === null) { | if ($this->freeBindings === null) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |