X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Flinker%2FLinkRendererFactory.php;h=eeb28b5560ccf1a05a467596a8a369446bb2672d;hb=82311f8c2c79bc469cae14e17546fd79d3541b76;hp=240ea09be90cc2e85e2df299cb8f41766b5f0d04;hpb=7159f97a55aa384706747b03726b42d9dcee8782;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/linker/LinkRendererFactory.php b/includes/linker/LinkRendererFactory.php index 240ea09be9..eeb28b5560 100644 --- a/includes/linker/LinkRendererFactory.php +++ b/includes/linker/LinkRendererFactory.php @@ -21,6 +21,7 @@ namespace MediaWiki\Linker; use LinkCache; +use NamespaceInfo; use TitleFormatter; use User; @@ -40,20 +41,29 @@ class LinkRendererFactory { */ private $linkCache; + /** + * @var NamespaceInfo + */ + private $nsInfo; + /** * @param TitleFormatter $titleFormatter * @param LinkCache $linkCache + * @param NamespaceInfo $nsInfo */ - public function __construct( TitleFormatter $titleFormatter, LinkCache $linkCache ) { + public function __construct( + TitleFormatter $titleFormatter, LinkCache $linkCache, NamespaceInfo $nsInfo + ) { $this->titleFormatter = $titleFormatter; $this->linkCache = $linkCache; + $this->nsInfo = $nsInfo; } /** * @return LinkRenderer */ public function create() { - return new LinkRenderer( $this->titleFormatter, $this->linkCache ); + return new LinkRenderer( $this->titleFormatter, $this->linkCache, $this->nsInfo ); } /**