Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5975218
Services.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
Services.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications
;
use
MediaWiki\Extension\Notifications\Cache\RevisionLocalCache
;
use
MediaWiki\Extension\Notifications\Cache\TitleLocalCache
;
use
MediaWiki\Extension\Notifications\Push\NotificationServiceClient
;
use
MediaWiki\Extension\Notifications\Push\SubscriptionManager
;
use
MediaWiki\MediaWikiServices
;
class
Services
{
/** @var MediaWikiServices */
private
$services
;
public
static
function
getInstance
():
Services
{
return
new
self
(
MediaWikiServices
::
getInstance
()
);
}
public
static
function
wrap
(
MediaWikiServices
$services
):
Services
{
return
new
self
(
$services
);
}
public
function
__construct
(
MediaWikiServices
$services
)
{
$this
->
services
=
$services
;
}
public
function
getPushNotificationServiceClient
():
NotificationServiceClient
{
return
$this
->
services
->
getService
(
'EchoPushNotificationServiceClient'
);
}
public
function
getPushSubscriptionManager
():
SubscriptionManager
{
return
$this
->
services
->
getService
(
'EchoPushSubscriptionManager'
);
}
public
function
getAttributeManager
():
AttributeManager
{
return
$this
->
services
->
getService
(
'EchoAttributeManager'
);
}
public
function
getTitleLocalCache
():
TitleLocalCache
{
return
$this
->
services
->
getService
(
'EchoTitleLocalCache'
);
}
public
function
getRevisionLocalCache
():
RevisionLocalCache
{
return
$this
->
services
->
getService
(
'EchoRevisionLocalCache'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:03 (18 h, 17 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
49/d6/e491b222671ccb0a748f1904fae9
Default Alt Text
Services.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment