diff --git a/src/configuration/ArcanistConfiguration.php b/src/configuration/ArcanistConfiguration.php index f8af6909..ea781630 100644 --- a/src/configuration/ArcanistConfiguration.php +++ b/src/configuration/ArcanistConfiguration.php @@ -1,108 +1,104 @@ buildAllWorkflows(), $command); } public function buildAllWorkflows() { $symbols = id(new PhutilSymbolLoader()) ->setType('class') ->setAncestorClass('ArcanistBaseWorkflow') ->selectAndLoadSymbols(); $workflows = array(); foreach ($symbols as $symbol) { $class = $symbol['name']; $workflow = newv($class, array()); // TODO: Delete after installations will update (2012-10-31). if (!method_exists($workflow, 'getWorkflowName')) { // This workflow was hopefully already built by our parent. continue; } $name = $workflow->getWorkflowName(); if (isset($workflows[$name])) { $other = get_class($workflows[$name]); throw new Exception( "Workflows {$class} and {$other} both implement workflows named ". "{$name}."); } $workflows[$workflow->getWorkflowName()] = $workflow; } return $workflows; } final public function isValidWorkflow($workflow) { return (bool)$this->buildWorkflow($workflow); } public function willRunWorkflow($command, ArcanistBaseWorkflow $workflow) { // This is a hook. } public function didRunWorkflow($command, ArcanistBaseWorkflow $workflow, $err) { // This is a hook. } - public function didAbortWorkflow( - $command, - ArcanistBaseWorkflow $workflow, - Exception $ex) { - + public function didAbortWorkflow($command, $workflow, Exception $ex) { // This is a hook. } public function getCustomArgumentsForCommand($command) { return array(); } }