Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4100098
CommentParserFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
CommentParserFactory.php
View Options
<?php
namespace
MediaWiki\CommentFormatter
;
use
MediaWiki\Cache\LinkBatchFactory
;
use
MediaWiki\Cache\LinkCache
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\Language\Language
;
use
MediaWiki\Linker\LinkRenderer
;
use
MediaWiki\Title\NamespaceInfo
;
use
MediaWiki\Title\TitleParser
;
use
RepoGroup
;
/**
* @internal
*/
class
CommentParserFactory
{
/** @var LinkRenderer */
private
$linkRenderer
;
/** @var LinkBatchFactory */
private
$linkBatchFactory
;
/** @var LinkCache */
private
$linkCache
;
/** @var RepoGroup */
private
$repoGroup
;
/** @var Language */
private
$userLang
;
/** @var Language */
private
$contLang
;
/** @var TitleParser */
private
$titleParser
;
/** @var NamespaceInfo */
private
$namespaceInfo
;
/** @var HookContainer */
private
$hookContainer
;
/**
* @param LinkRenderer $linkRenderer
* @param LinkBatchFactory $linkBatchFactory
* @param LinkCache $linkCache
* @param RepoGroup $repoGroup
* @param Language $userLang
* @param Language $contLang
* @param TitleParser $titleParser
* @param NamespaceInfo $namespaceInfo
* @param HookContainer $hookContainer
*/
public
function
__construct
(
LinkRenderer
$linkRenderer
,
LinkBatchFactory
$linkBatchFactory
,
LinkCache
$linkCache
,
RepoGroup
$repoGroup
,
Language
$userLang
,
Language
$contLang
,
TitleParser
$titleParser
,
NamespaceInfo
$namespaceInfo
,
HookContainer
$hookContainer
)
{
$this
->
linkRenderer
=
$linkRenderer
;
$this
->
linkBatchFactory
=
$linkBatchFactory
;
$this
->
linkCache
=
$linkCache
;
$this
->
repoGroup
=
$repoGroup
;
$this
->
userLang
=
$userLang
;
$this
->
contLang
=
$contLang
;
$this
->
titleParser
=
$titleParser
;
$this
->
namespaceInfo
=
$namespaceInfo
;
$this
->
hookContainer
=
$hookContainer
;
}
/**
* @return CommentParser
*/
public
function
create
()
{
return
new
CommentParser
(
$this
->
linkRenderer
,
$this
->
linkBatchFactory
,
$this
->
linkCache
,
$this
->
repoGroup
,
$this
->
userLang
,
$this
->
contLang
,
$this
->
titleParser
,
$this
->
namespaceInfo
,
$this
->
hookContainer
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 16:14 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/cc/944ee89a8cace12acc7df2bb4e6f
Default Alt Text
CommentParserFactory.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment