Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100495263
PhabricatorSetupCheckInvalidConfig.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
Fri, Jan 31, 06:14
Size
905 B
Mime Type
text/x-php
Expires
Sun, Feb 2, 06:14 (2 d)
Engine
blob
Format
Raw Data
Handle
23980288
Attached To
rPH Phabricator
PhabricatorSetupCheckInvalidConfig.php
View Options
<?php
final
class
PhabricatorSetupCheckInvalidConfig
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$groups
=
PhabricatorApplicationConfigOptions
::
loadAll
();
foreach
(
$groups
as
$group
)
{
$options
=
$group
->
getOptions
();
foreach
(
$options
as
$option
)
{
try
{
$group
->
validateOption
(
$option
,
PhabricatorEnv
::
getEnvConfig
(
$option
->
getKey
()));
}
catch
(
PhabricatorConfigValidationException
$ex
)
{
$this
->
newIssue
(
'config.invalid.'
.
$option
->
getKey
())
->
setName
(
pht
(
"Config '%s' Invalid"
,
$option
->
getKey
()))
->
setMessage
(
pht
(
"Configuration option '%s' has invalid value: %s"
,
$option
->
getKey
(),
$ex
->
getMessage
()))
->
addPhabricatorConfig
(
$option
->
getKey
());
}
}
}
}
}
Event Timeline
Log In to Comment