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 "Fix Block::newLoad for IPv6 range blocks"
[lhc/web/wiklou.git]
/
includes
/
linker
/
LinkRendererFactory.php
diff --git
a/includes/linker/LinkRendererFactory.php
b/includes/linker/LinkRendererFactory.php
index
240ea09
..
eeb28b5
100644
(file)
--- a/
includes/linker/LinkRendererFactory.php
+++ b/
includes/linker/LinkRendererFactory.php
@@
-21,6
+21,7
@@
namespace MediaWiki\Linker;
use LinkCache;
namespace MediaWiki\Linker;
use LinkCache;
+use NamespaceInfo;
use TitleFormatter;
use User;
use TitleFormatter;
use User;
@@
-40,20
+41,29
@@
class LinkRendererFactory {
*/
private $linkCache;
*/
private $linkCache;
+ /**
+ * @var NamespaceInfo
+ */
+ private $nsInfo;
+
/**
* @param TitleFormatter $titleFormatter
* @param LinkCache $linkCache
/**
* @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->titleFormatter = $titleFormatter;
$this->linkCache = $linkCache;
+ $this->nsInfo = $nsInfo;
}
/**
* @return LinkRenderer
*/
public function create() {
}
/**
* @return LinkRenderer
*/
public function create() {
- return new LinkRenderer( $this->titleFormatter, $this->linkCache );
+ return new LinkRenderer( $this->titleFormatter, $this->linkCache
, $this->nsInfo
);
}
/**
}
/**