Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14743911
D11675.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11675.diff
View Options
diff --git a/scripts/example/subworkflow.php b/scripts/example/subworkflow.php
--- a/scripts/example/subworkflow.php
+++ b/scripts/example/subworkflow.php
@@ -13,7 +13,7 @@
// This shows how to do manual parsing of raw arguments.
-final class PhutilArgumentWorkflowEchoExample extends PhutilArgumentWorkflow {
+final class PhutilEchoExampleArgumentWorkflow extends PhutilArgumentWorkflow {
public function isExecutable() {
return true;
@@ -33,7 +33,7 @@
// This shows how to delegate to sub-workflows.
-final class PhutilArgumentWorkflowDoExample extends PhutilArgumentWorkflow {
+final class PhutilDoExampleArgumentWorkflow extends PhutilArgumentWorkflow {
public function isExecutable() {
return true;
@@ -44,7 +44,7 @@
}
public function execute(PhutilArgumentParser $args) {
- $echo_workflow = id(new PhutilArgumentWorkflowEchoExample())
+ $echo_workflow = id(new PhutilEchoExampleArgumentWorkflow())
->setName('echo')
->setExamples('**echo** __string__ ...')
->setSynopsis('Echo __string__.');
@@ -59,7 +59,7 @@
}
-$do_workflow = id(new PhutilArgumentWorkflowDoExample())
+$do_workflow = id(new PhutilDoExampleArgumentWorkflow())
->setName('do')
->setExamples('**do** __thing__ ...')
->setSynopsis('Do __thing__.');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 3:50 AM (20 h, 7 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7026624
Default Alt Text
D11675.diff (1 KB)
Attached To
Mode
D11675: Rename example classes
Attached
Detach File
Event Timeline
Log In to Comment