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
DI for CommentStore in WatchedItemQueryService
[lhc/web/wiklou.git]
/
includes
/
watcheditem
/
WatchedItemQueryService.php
diff --git
a/includes/watcheditem/WatchedItemQueryService.php
b/includes/watcheditem/WatchedItemQueryService.php
index
d546f0a
..
abe9b89
100644
(file)
--- a/
includes/watcheditem/WatchedItemQueryService.php
+++ b/
includes/watcheditem/WatchedItemQueryService.php
@@
-59,9
+59,12
@@
class WatchedItemQueryService {
/** @var CommentStore */
private $commentStore;
/** @var CommentStore */
private $commentStore;
- public function __construct( LoadBalancer $loadBalancer ) {
+ public function __construct(
+ LoadBalancer $loadBalancer,
+ CommentStore $commentStore
+ ) {
$this->loadBalancer = $loadBalancer;
$this->loadBalancer = $loadBalancer;
- $this->commentStore =
CommentStore::getStore()
;
+ $this->commentStore =
$commentStore
;
}
/**
}
/**