Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106118829
PhabricatorSearchManagementWorkflow.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
Sat, Mar 22, 15:38
Size
789 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 15:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25116849
Attached To
rPH Phabricator
PhabricatorSearchManagementWorkflow.php
View Options
<?php
abstract
class
PhabricatorSearchManagementWorkflow
extends
PhabricatorManagementWorkflow
{
protected
function
validateClusterSearchConfig
()
{
// Configuration is normally validated by setup self-checks on the web
// workflow, but users may reasonsably run `bin/search` commands after
// making manual edits to "local.json". Re-verify configuration here before
// continuing.
$config_key
=
'cluster.search'
;
$config_value
=
PhabricatorEnv
::
getEnvConfig
(
$config_key
);
try
{
PhabricatorClusterSearchConfigType
::
validateValue
(
$config_value
);
}
catch
(
Exception
$ex
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'Setting "%s" is misconfigured: %s'
,
$config_key
,
$ex
->
getMessage
()));
}
}
}
Event Timeline
Log In to Comment