]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Require defining getWorkflowName()
authorvrana <jakubv@fb.com>
Fri, 19 Oct 2012 18:02:46 +0000 (11:02 -0700)
committervrana <jakubv@fb.com>
Wed, 31 Oct 2012 17:52:26 +0000 (10:52 -0700)
Test Plan:
  $ arc help

Reviewers: epriestley, edward

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3742

src/configuration/ArcanistConfiguration.php
src/workflow/ArcanistBaseWorkflow.php

index ea781630c06ba24f44dbeb6f154d4ef4ed3161c9..560b643255d6f065f3859ee1cee8d4a6f41ceed3 100644 (file)
@@ -58,13 +58,6 @@ class ArcanistConfiguration {
     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])) {
index 7e9e774d47b157dc7103deac77d46d60afcda268..40b851f122e2485af468bf811d158a5d6f0a1e62 100644 (file)
@@ -89,8 +89,7 @@ abstract class ArcanistBaseWorkflow {
    *
    * @return string   The command a user types to invoke this workflow.
    */
-  // TODO: Uncomment after installations will update (2012-10-31).
-  // abstract public function getWorkflowName();
+  abstract public function getWorkflowName();
 
   /**
    * Return console formatted string with all command synopses.