dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "mw.Feedback: If the message is posted remotely, link the title correctly"
[lhc/web/wiklou.git]
/
includes
/
linker
/
LinkRendererFactory.php
diff --git
a/includes/linker/LinkRendererFactory.php
b/includes/linker/LinkRendererFactory.php
index
7124be1
..
240ea09
100644
(file)
--- a/
includes/linker/LinkRendererFactory.php
+++ b/
includes/linker/LinkRendererFactory.php
@@
-16,11
+16,11
@@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @license GPL-2.0+
* @author Kunal Mehta <legoktm@member.fsf.org>
*/
namespace MediaWiki\Linker;
* @author Kunal Mehta <legoktm@member.fsf.org>
*/
namespace MediaWiki\Linker;
+use LinkCache;
use TitleFormatter;
use User;
use TitleFormatter;
use User;
@@
-35,18
+35,25
@@
class LinkRendererFactory {
*/
private $titleFormatter;
*/
private $titleFormatter;
+ /**
+ * @var LinkCache
+ */
+ private $linkCache;
+
/**
* @param TitleFormatter $titleFormatter
/**
* @param TitleFormatter $titleFormatter
+ * @param LinkCache $linkCache
*/
*/
- public function __construct( TitleFormatter $titleFormatter ) {
+ public function __construct( TitleFormatter $titleFormatter
, LinkCache $linkCache
) {
$this->titleFormatter = $titleFormatter;
$this->titleFormatter = $titleFormatter;
+ $this->linkCache = $linkCache;
}
/**
* @return LinkRenderer
*/
public function create() {
}
/**
* @return LinkRenderer
*/
public function create() {
- return new LinkRenderer( $this->titleFormatter );
+ return new LinkRenderer( $this->titleFormatter
, $this->linkCache
);
}
/**
}
/**