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 "installer: Deprecate WebInstaller::getInfoBox, getWarningBox and getErrorBox"
[lhc/web/wiklou.git]
/
includes
/
linker
/
LinkRendererFactory.php
diff --git
a/includes/linker/LinkRendererFactory.php
b/includes/linker/LinkRendererFactory.php
index
b7c05c2
..
eeb28b5
100644
(file)
--- a/
includes/linker/LinkRendererFactory.php
+++ b/
includes/linker/LinkRendererFactory.php
@@
-16,12
+16,12
@@
* 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;
use LinkCache;
* @author Kunal Mehta <legoktm@member.fsf.org>
*/
namespace MediaWiki\Linker;
use LinkCache;
+use NamespaceInfo;
use TitleFormatter;
use User;
use TitleFormatter;
use User;
@@
-41,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
);
}
/**
}
/**