From b52ee2fdeecd087f3bee75376a01f79e26b53a48 Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 19 Oct 2012 10:38:34 -0700 Subject: [PATCH] Temporarily unrequire defining getWorkflowName() Summary: We need to run new Arcanist over old code in Perflab. We also need to run new Arcanist over new code (with already deleted custom `buildAllWorkflows()`). This will work because old code overwrites `buildAllWorkflows()`. Test Plan: $ arc help $ arc help # after deleting getWorkflowName() from one workflow Reviewers: edward, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3741 --- src/configuration/ArcanistConfiguration.php | 7 +++++++ src/workflow/ArcanistBaseWorkflow.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/configuration/ArcanistConfiguration.php b/src/configuration/ArcanistConfiguration.php index be5c8921..696b8e77 100644 --- a/src/configuration/ArcanistConfiguration.php +++ b/src/configuration/ArcanistConfiguration.php @@ -58,6 +58,13 @@ 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])) { diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index 2dc793e0..943b9626 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -89,7 +89,8 @@ abstract class ArcanistBaseWorkflow { * * @return string The command a user types to invoke this workflow. */ - abstract public function getWorkflowName(); + // TODO: Uncomment after installations will update (2012-10-31). + // abstract public function getWorkflowName(); /** * Return console formatted string with all command synopses. -- 2.43.0