File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/internal/Magento/Framework/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Framework \DataObject ;
10
10
use Magento \Framework \Model \CallbackPool ;
11
11
use Magento \Framework \Serialize \Serializer \Json ;
12
+ use Psr \Log \LoggerInterface ;
12
13
13
14
/**
14
15
* Abstract resource model
@@ -24,9 +25,9 @@ abstract class AbstractResource
24
25
protected $ serializer ;
25
26
26
27
/**
27
- * @var \Psr\Log\ LoggerInterface
28
+ * @var LoggerInterface
28
29
*/
29
- protected $ _logger ;
30
+ private $ logger ;
30
31
31
32
/**
32
33
* Constructor
@@ -261,15 +262,15 @@ protected function getSerializer()
261
262
/**
262
263
* Get logger
263
264
*
264
- * @return \Psr\Log\ LoggerInterface
265
+ * @return LoggerInterface
265
266
* @deprecated 100.2.0
266
267
* @since 100.2.0
267
268
*/
268
269
private function getLogger ()
269
270
{
270
- if (null === $ this ->_logger ) {
271
- $ this ->_logger = ObjectManager::getInstance ()->get (\ Psr \ Log \ LoggerInterface::class);
271
+ if (null === $ this ->logger ) {
272
+ $ this ->logger = ObjectManager::getInstance ()->get (LoggerInterface::class);
272
273
}
273
- return $ this ->_logger ;
274
+ return $ this ->logger ;
274
275
}
275
276
}
You can’t perform that action at this time.
0 commit comments