mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Pass logger in constructor for importers
This commit is contained in:
parent
96c8cc25af
commit
51884911f5
10 changed files with 22 additions and 47 deletions
|
@ -589,12 +589,11 @@ JSON
|
|||
->expects($this->exactly($dispatched))
|
||||
->method('dispatch');
|
||||
|
||||
$pocket = new PocketImport($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher);
|
||||
$pocket->setUser($this->user);
|
||||
|
||||
$this->logHandler = new TestHandler();
|
||||
$logger = new Logger('test', [$this->logHandler]);
|
||||
$pocket->setLogger($logger);
|
||||
|
||||
$pocket = new PocketImport($this->em, $this->contentProxy, $this->tagsAssigner, $dispatcher, $logger);
|
||||
$pocket->setUser($this->user);
|
||||
|
||||
return $pocket;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue