Page MenuHomeWickedGov Phorge

CommentParserFactory.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

CommentParserFactory.php

<?php
namespace MediaWiki\CommentFormatter;
use MediaWiki\Cache\LinkBatchFactory;
use MediaWiki\Cache\LinkCache;
use MediaWiki\Context\RequestContext;
use MediaWiki\FileRepo\RepoGroup;
use MediaWiki\HookContainer\HookContainer;
use MediaWiki\Language\Language;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Title\NamespaceInfo;
use MediaWiki\Title\TitleParser;
/**
* @internal
*/
class CommentParserFactory {
public function __construct(
private readonly LinkRenderer $linkRenderer,
private readonly LinkBatchFactory $linkBatchFactory,
private readonly LinkCache $linkCache,
private readonly RepoGroup $repoGroup,
private readonly Language $contLang,
private readonly TitleParser $titleParser,
private readonly NamespaceInfo $namespaceInfo,
private readonly HookContainer $hookContainer
) {
}
public function create(): CommentParser {
return new CommentParser(
$this->linkRenderer,
$this->linkBatchFactory,
$this->linkCache,
$this->repoGroup,
RequestContext::getMain()->getLanguage(),
$this->contLang,
$this->titleParser,
$this->namespaceInfo,
$this->hookContainer
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 16:49 (17 h, 18 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ff/6a/f60ee35f1b08a4dc8214dddab980
Default Alt Text
CommentParserFactory.php (1 KB)

Event Timeline