Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5958691
FormatterFactory.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
FormatterFactory.php
View Options
<?php
namespace
MediaWiki\Language
;
use
MediaWiki\Block\BlockErrorFormatter
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\Languages\LanguageFactory
;
use
MediaWiki\Status\StatusFormatter
;
use
MediaWiki\Title\TitleFormatter
;
use
MediaWiki\User\UserIdentityUtils
;
use
MessageCache
;
use
MessageLocalizer
;
use
Psr\Log\LoggerInterface
;
/**
* Factory for formatters of common complex objects
*
* @since 1.42
*/
class
FormatterFactory
{
private
MessageCache
$messageCache
;
private
TitleFormatter
$titleFormatter
;
private
HookContainer
$hookContainer
;
private
UserIdentityUtils
$userIdentityUtils
;
private
LanguageFactory
$languageFactory
;
private
LoggerInterface
$logger
;
public
function
__construct
(
MessageCache
$messageCache
,
TitleFormatter
$titleFormatter
,
HookContainer
$hookContainer
,
UserIdentityUtils
$userIdentityUtils
,
LanguageFactory
$languageFactory
,
LoggerInterface
$logger
)
{
$this
->
messageCache
=
$messageCache
;
$this
->
titleFormatter
=
$titleFormatter
;
$this
->
hookContainer
=
$hookContainer
;
$this
->
userIdentityUtils
=
$userIdentityUtils
;
$this
->
languageFactory
=
$languageFactory
;
$this
->
logger
=
$logger
;
}
public
function
getStatusFormatter
(
MessageLocalizer
$messageLocalizer
):
StatusFormatter
{
return
new
StatusFormatter
(
$messageLocalizer
,
$this
->
messageCache
,
$this
->
logger
);
}
public
function
getBlockErrorFormatter
(
LocalizationContext
$context
):
BlockErrorFormatter
{
return
new
BlockErrorFormatter
(
$this
->
titleFormatter
,
$this
->
hookContainer
,
$this
->
userIdentityUtils
,
$this
->
languageFactory
,
$context
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 05:57 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
53/6c/5d48a0a54d94fea6506308c8daf1
Default Alt Text
FormatterFactory.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment