Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91418587
PhabricatorSetupCheckExtraConfig.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
Sun, Nov 10, 22:29
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Nov 12, 22:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22260492
Attached To
rPH Phabricator
PhabricatorSetupCheckExtraConfig.php
View Options
<?php
final
class
PhabricatorSetupCheckExtraConfig
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$all_keys
=
PhabricatorEnv
::
getAllConfigKeys
();
$all_keys
=
array_keys
(
$all_keys
);
sort
(
$all_keys
);
$defined_keys
=
PhabricatorApplicationConfigOptions
::
loadAllOptions
();
foreach
(
$all_keys
as
$key
)
{
if
(
isset
(
$defined_keys
[
$key
]))
{
continue
;
}
$summary
=
pht
(
"This option is not recognized. It may be misspelled."
);
$message
=
pht
(
"The configuration option '%s' is not recognized. It may be "
.
"misspelled, or it might have existed in an older version of "
.
"Phabricator. It has no effect, and should be corrected or deleted."
,
$key
);
$this
->
newIssue
(
'config.unknown.'
.
$key
)
->
setShortName
(
pht
(
'Unknown Config'
))
->
setName
(
pht
(
'Unknown Configuration Option "%s"'
,
$key
))
->
setSummary
(
$summary
)
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
$key
);
}
}
}
Event Timeline
Log In to Comment