Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7425455
ServiceWiring.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ServiceWiring.php
View Options
<?php
use
MediaWiki\Config\Config
;
use
MediaWiki\Logger\LoggerFactory
;
use
MediaWiki\MediaWikiServices
;
use
MediaWiki\Registration\ExtensionRegistry
;
use
Popups\PopupsContext
;
use
Popups\PopupsGadgetsIntegration
;
use
Psr\Log\LoggerInterface
;
/**
* @codeCoverageIgnore
*/
return
[
'Popups.Config'
=>
static
function
(
MediaWikiServices
$services
):
Config
{
return
$services
->
getService
(
'ConfigFactory'
)
->
makeConfig
(
PopupsContext
::
EXTENSION_NAME
);
},
'Popups.GadgetsIntegration'
=>
static
function
(
MediaWikiServices
$services
):
PopupsGadgetsIntegration
{
return
new
PopupsGadgetsIntegration
(
$services
->
getService
(
'Popups.Config'
),
ExtensionRegistry
::
getInstance
()->
isLoaded
(
'Gadgets'
)
?
$services
->
getService
(
'GadgetsRepo'
)
:
null
);
},
'Popups.Logger'
=>
static
function
(
MediaWikiServices
$services
):
LoggerInterface
{
return
LoggerFactory
::
getInstance
(
PopupsContext
::
LOGGER_CHANNEL
);
},
'Popups.Context'
=>
static
function
(
MediaWikiServices
$services
):
PopupsContext
{
return
new
PopupsContext
(
$services
->
getService
(
'Popups.Config'
),
ExtensionRegistry
::
getInstance
(),
$services
->
getService
(
'Popups.GadgetsIntegration'
),
$services
->
getSpecialPageFactory
(),
$services
->
getUserOptionsLookup
()
);
}
];
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 07:55 (19 h, 30 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9e/f6/2bfaab745132e0219ec2d1c2f350
Default Alt Text
ServiceWiring.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment