X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flinker%2FLinkRendererFactory.php;h=240ea09be90cc2e85e2df299cb8f41766b5f0d04;hp=7124be1e994913c4731805d4f9016388b4f25986;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=ff13c3d92a3357d2cbb03c4d58dfc33999942b0a diff --git a/includes/linker/LinkRendererFactory.php b/includes/linker/LinkRendererFactory.php index 7124be1e99..240ea09be9 100644 --- a/includes/linker/LinkRendererFactory.php +++ b/includes/linker/LinkRendererFactory.php @@ -16,11 +16,11 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL-2.0+ * @author Kunal Mehta */ namespace MediaWiki\Linker; +use LinkCache; use TitleFormatter; use User; @@ -35,18 +35,25 @@ class LinkRendererFactory { */ private $titleFormatter; + /** + * @var LinkCache + */ + private $linkCache; + /** * @param TitleFormatter $titleFormatter + * @param LinkCache $linkCache */ - public function __construct( TitleFormatter $titleFormatter ) { + public function __construct( TitleFormatter $titleFormatter, LinkCache $linkCache ) { $this->titleFormatter = $titleFormatter; + $this->linkCache = $linkCache; } /** * @return LinkRenderer */ public function create() { - return new LinkRenderer( $this->titleFormatter ); + return new LinkRenderer( $this->titleFormatter, $this->linkCache ); } /**