Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113130703
PhabricatorDaemonManagementDebugWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, May 15, 09:01
Size
934 B
Mime Type
text/x-php
Expires
Sat, May 17, 09:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26151381
Attached To
rPH Phabricator
PhabricatorDaemonManagementDebugWorkflow.php
View Options
<?php
final
class
PhabricatorDaemonManagementDebugWorkflow
extends
PhabricatorDaemonManagementWorkflow
{
public
function
shouldParsePartial
()
{
return
true
;
}
public
function
didConstruct
()
{
$this
->
setName
(
'debug'
)
->
setExamples
(
'**debug** __daemon__'
)
->
setSynopsis
(
pht
(
'Start __daemon__ in the foreground and print large volumes of '
.
'diagnostic information to the console.'
))
->
setArguments
(
array
(
array
(
'name'
=>
'argv'
,
'wildcard'
=>
true
,
),
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$argv
=
$args
->
getArg
(
'argv'
);
if
(!
$argv
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'You must specify which daemon to debug.'
));
}
$daemon_class
=
array_shift
(
$argv
);
return
$this
->
launchDaemon
(
$daemon_class
,
$argv
,
$is_debug
=
true
);
}
}
Event Timeline
Log In to Comment