[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorDaemonManagementDebugWorkflow 4 extends PhabricatorDaemonManagementWorkflow { 5 6 public function shouldParsePartial() { 7 return true; 8 } 9 10 public function didConstruct() { 11 $this 12 ->setName('debug') 13 ->setExamples('**debug** __daemon__') 14 ->setSynopsis( 15 pht( 16 'Start __daemon__ in the foreground and print large volumes of '. 17 'diagnostic information to the console.')) 18 ->setArguments( 19 array( 20 array( 21 'name' => 'argv', 22 'wildcard' => true, 23 ), 24 )); 25 } 26 27 public function execute(PhutilArgumentParser $args) { 28 $argv = $args->getArg('argv'); 29 30 if (!$argv) { 31 throw new PhutilArgumentUsageException( 32 pht('You must specify which daemon to debug.')); 33 } 34 35 $daemon_class = array_shift($argv); 36 return $this->launchDaemon($daemon_class, $argv, $is_debug = true); 37 } 38 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |