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)
110110 if (!is_null ($ logger ) && isset ($ config ['logger ' ])){
111111 throw new \Exception ('Logger set in 2 places ' );
112112 } else if (isset ($ config ['logger ' ])) {
113- $ this ->setLogger ( $ config ['logger ' ]) ;
113+ $ this ->logger = $ config ['logger ' ];
114114 } else if ($ logger ) {
115- $ this ->setLogger ( $ logger) ;
115+ $ this ->logger = $ logger ;
116116 } else {
117- $ this ->setLogger ( new NullLogger () );
117+ $ this ->logger = new NullLogger ();
118118 }
119119
120120 $ this ->retry = new Retry ($ this ->logger );
@@ -364,8 +364,4 @@ public function getLogger()
364364 return $ this ->logger ;
365365 }
366366
367- protected function setLogger (LoggerInterface $ logger ){
368- $ this ->logger = $ logger ;
369- }
370-
371367}
You can’t perform that action at this time.
0 commit comments