Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5969463
ResourceLoaderConfigHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
669 B
Referenced Files
None
Subscribers
None
ResourceLoaderConfigHandler.php
View Options
<?php
namespace
MediaWiki\Extension\Math\HookHandlers
;
use
MediaWiki\Config\Config
;
use
MediaWiki\Extension\Math\MathConfig
;
use
MediaWiki\ResourceLoader\Hook\ResourceLoaderGetConfigVarsHook
;
class
ResourceLoaderConfigHandler
implements
ResourceLoaderGetConfigVarsHook
{
/** @var MathConfig */
private
$mathConfig
;
/**
* @param MathConfig $mathConfig
*/
public
function
__construct
(
MathConfig
$mathConfig
)
{
$this
->
mathConfig
=
$mathConfig
;
}
/** @inheritDoc */
public
function
onResourceLoaderGetConfigVars
(
array
&
$vars
,
$skin
,
Config
$config
):
void
{
$vars
[
'wgMathEntitySelectorUrl'
]
=
$this
->
mathConfig
->
getMathEntitySelectorUrl
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 13:47 (1 d, 2 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c2/91/ba06cd8d27215011912941b90e1f
Default Alt Text
ResourceLoaderConfigHandler.php (669 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment