File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ public function __construct($config = [], LoggerInterface $logger = null)
110
110
if (!is_null ($ logger ) && isset ($ config ['logger ' ])){
111
111
throw new \Exception ('Logger set in 2 places ' );
112
112
} else if (isset ($ config ['logger ' ])) {
113
- $ this ->setLogger ( $ config ['logger ' ]) ;
113
+ $ this ->logger = $ config ['logger ' ];
114
114
} else if ($ logger ) {
115
- $ this ->setLogger ( $ logger) ;
115
+ $ this ->logger = $ logger ;
116
116
} else {
117
- $ this ->setLogger ( new NullLogger () );
117
+ $ this ->logger = new NullLogger ();
118
118
}
119
119
120
120
$ this ->retry = new Retry ($ this ->logger );
@@ -364,8 +364,4 @@ public function getLogger()
364
364
return $ this ->logger ;
365
365
}
366
366
367
- protected function setLogger (LoggerInterface $ logger ){
368
- $ this ->logger = $ logger ;
369
- }
370
-
371
367
}
You can’t perform that action at this time.
0 commit comments