Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90742010
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
Mon, Nov 4, 08:37
Size
934 B
Mime Type
text/x-php
Expires
Wed, Nov 6, 08:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22127567
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