Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549130
PhabricatorSearchManagementWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
788 B
Referenced Files
None
Subscribers
None
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 reasonably 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
()));
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:02 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
109158
Default Alt Text
PhabricatorSearchManagementWorkflow.php (788 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment