Skip to content

Commit 45987fd

Browse files
authored
Merge pull request #224 from AexChecker/patch-1
#225 | The "JiraClient::__construct()" gets "LoggerInterface"
2 parents 1648c74 + 294c42b commit 45987fd

File tree

11 files changed

+86
-85
lines changed

11 files changed

+86
-85
lines changed

src/Attachment/AttachmentService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function get($id, $outDir = null, $overwrite = false, $mode = 0777, $recu
2929
{
3030
$ret = $this->exec($this->uri.$id, null);
3131

32-
$this->log->addInfo("Result=\n".$ret);
32+
$this->log->info("Result=\n".$ret);
3333

3434
$attachment = $this->json_mapper->map(
3535
json_decode($ret), new Attachment()
@@ -69,7 +69,7 @@ public function remove($id)
6969
{
7070
$ret = $this->exec($this->uri.$id, null, 'DELETE');
7171

72-
$this->log->addInfo("Result=\n".$ret);
72+
$this->log->info("Result=\n".$ret);
7373

7474
return $ret;
7575
}

src/Field/FieldService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getCustomFieldOption($id)
6161
{
6262
$ret = $this->exec('/customFieldOption/'.$id);
6363

64-
$this->log->addDebug("get custom Field Option=\n".$ret);
64+
$this->log->debug("get custom Field Option=\n".$ret);
6565

6666
return $ret;
6767
}
@@ -80,7 +80,7 @@ public function create(Field $field)
8080
{
8181
$data = json_encode($field);
8282

83-
$this->log->addInfo("Create Field=\n".$data);
83+
$this->log->info("Create Field=\n".$data);
8484

8585
$ret = $this->exec($this->uri, $data, 'POST');
8686

src/Group/GroupService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function get($paramArray)
2626

2727
$ret = $this->exec($this->uri.$queryParam, null);
2828

29-
$this->log->addInfo("Result=\n".$ret);
29+
$this->log->info("Result=\n".$ret);
3030

3131
return $this->json_mapper->map(
3232
json_decode($ret), new Group()
@@ -49,7 +49,7 @@ public function getMembers($paramArray)
4949

5050
$ret = $this->exec($this->uri.'/member'.$queryParam, null);
5151

52-
$this->log->addInfo("Result=\n".$ret);
52+
$this->log->info("Result=\n".$ret);
5353

5454
$userData = json_decode($ret);
5555

@@ -74,7 +74,7 @@ public function createGroup($group)
7474

7575
$ret = $this->exec($this->uri, $data);
7676

77-
$this->log->addInfo("Result=\n".$ret);
77+
$this->log->info("Result=\n".$ret);
7878

7979
$group = $this->json_mapper->map(
8080
json_decode($ret), new Group()
@@ -100,7 +100,7 @@ public function addUserToGroup($groupName, $userName)
100100

101101
$ret = $this->exec($this->uri.'/user?groupname='.urlencode($groupName), $data);
102102

103-
$this->log->addInfo("Result=\n".$ret);
103+
$this->log->info("Result=\n".$ret);
104104

105105
$group = $this->json_mapper->map(
106106
json_decode($ret), new Group()
@@ -125,7 +125,7 @@ public function removeUserFromGroup($groupName, $userName)
125125

126126
$ret = $this->exec($this->uri.'/user?'.$param, [], 'DELETE');
127127

128-
$this->log->addInfo("Result=\n".$ret);
128+
$this->log->info("Result=\n".$ret);
129129

130130
return $ret;
131131
}

0 commit comments

Comments
 (0)