Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6089574
ConfigWrapper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
ConfigWrapper.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Babel\Config
;
use
MediaWiki\Config\Config
;
use
MediaWiki\Extension\CommunityConfiguration\Access\MediaWikiConfigReader
;
class
ConfigWrapper
implements
Config
{
private
MediaWikiConfigReader
$configReader
;
public
function
__construct
(
MediaWikiConfigReader
$configReader
)
{
$this
->
configReader
=
$configReader
;
}
/**
* @inheritDoc
*/
public
function
get
(
$name
)
{
$value
=
$this
->
configReader
->
get
(
$name
);
if
(
is_object
(
$value
)
)
{
// Convert the BabelCategoryNames key to an array rather than an object. See T369608
$value
=
wfObjectToArray
(
$value
);
}
return
$value
;
}
/**
* @inheritDoc
*/
public
function
has
(
$name
):
bool
{
return
$this
->
configReader
->
has
(
$name
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 18:40 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ae/f8/3e493b292b02400351153ff427bd
Default Alt Text
ConfigWrapper.php (780 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment