X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flinker%2FLinkRendererFactory.php;h=eeb28b5560ccf1a05a467596a8a369446bb2672d;hb=b00ce7312209b885ceefe37b710931eef8f8d901;hp=b7c05c2fe88944ce0b2c140dda02c82210ea3563;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/linker/LinkRendererFactory.php b/includes/linker/LinkRendererFactory.php index b7c05c2fe8..eeb28b5560 100644 --- a/includes/linker/LinkRendererFactory.php +++ b/includes/linker/LinkRendererFactory.php @@ -16,12 +16,12 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL-2.0+ * @author Kunal Mehta */ namespace MediaWiki\Linker; use LinkCache; +use NamespaceInfo; use TitleFormatter; use User; @@ -41,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 ); } /**