Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63697561
PhabricatorGarbageCollectorManagementWorkflow.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
Tue, May 21, 22:28
Size
818 B
Mime Type
text/x-php
Expires
Thu, May 23, 22:28 (2 d)
Engine
blob
Format
Raw Data
Handle
17807826
Attached To
rPH Phabricator
PhabricatorGarbageCollectorManagementWorkflow.php
View Options
<?php
abstract
class
PhabricatorGarbageCollectorManagementWorkflow
extends
PhabricatorManagementWorkflow
{
protected
function
getCollector
(
$const
)
{
$collectors
=
PhabricatorGarbageCollector
::
getAllCollectors
();
$collector_list
=
array_keys
(
$collectors
);
sort
(
$collector_list
);
$collector_list
=
implode
(
', '
,
$collector_list
);
if
(!
$const
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'Specify a collector with "%s". Valid collectors are: %s.'
,
'--collector'
,
$collector_list
));
}
if
(
empty
(
$collectors
[
$const
]))
{
throw
new
PhutilArgumentUsageException
(
pht
(
'No such collector "%s". Choose a valid collector: %s.'
,
$const
,
$collector_list
));
}
return
$collectors
[
$const
];
}
}
Event Timeline
Log In to Comment