Differential D7511 Diff 16936 src/applications/harbormaster/controller/HarbormasterStepEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterStepEditController.php
<?php | <?php | ||||
final class HarbormasterStepEditController | final class HarbormasterStepEditController | ||||
extends HarbormasterController { | extends HarbormasterController { | ||||
private $id; | private $id; | ||||
public function willProcessRequest(array $data) { | public function willProcessRequest(array $data) { | ||||
$this->id = idx($data, 'id'); | $this->id = idx($data, 'id'); | ||||
} | } | ||||
/** | |||||
* @phutil-external-symbol class BuildStepImplementation | |||||
*/ | |||||
public function processRequest() { | public function processRequest() { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
$this->requireApplicationCapability( | $this->requireApplicationCapability( | ||||
HarbormasterCapabilityManagePlans::CAPABILITY); | HarbormasterCapabilityManagePlans::CAPABILITY); | ||||
$step = id(new HarbormasterBuildStepQuery()) | $step = id(new HarbormasterBuildStepQuery()) | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |