6
6
namespace Magento \Framework \View ;
7
7
8
8
use Magento \Framework \App \ObjectManager ;
9
- use Magento \Framework \Unserialize \SecureUnserializer as Unserialize ;
9
+ use Magento \Framework \Unserialize \SecureUnserializer ;
10
10
use Psr \Log \LoggerInterface ;
11
11
12
12
/**
@@ -36,7 +36,7 @@ class DesignExceptions
36
36
protected $ scopeType ;
37
37
38
38
/**
39
- * @var Unserialize
39
+ * @var SecureUnserializer
40
40
*/
41
41
private $ secureUnserializer ;
42
42
@@ -49,21 +49,21 @@ class DesignExceptions
49
49
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
50
50
* @param string $exceptionConfigPath
51
51
* @param string $scopeType
52
- * @param Unserialize |null $secureUnserializer
52
+ * @param SecureUnserializer |null $secureUnserializer
53
53
* @param LoggerInterface|null $logger
54
54
*/
55
55
public function __construct (
56
56
\Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
57
57
$ exceptionConfigPath ,
58
58
$ scopeType ,
59
- Unserialize $ secureUnserializer = null ,
59
+ SecureUnserializer $ secureUnserializer = null ,
60
60
LoggerInterface $ logger = null
61
61
) {
62
62
$ this ->scopeConfig = $ scopeConfig ;
63
63
$ this ->exceptionConfigPath = $ exceptionConfigPath ;
64
64
$ this ->scopeType = $ scopeType ;
65
65
$ this ->secureUnserializer = $ secureUnserializer ?:
66
- ObjectManager::getInstance ()->create (Unserialize ::class);
66
+ ObjectManager::getInstance ()->create (SecureUnserializer ::class);
67
67
$ this ->logger = $ logger ?: ObjectManager::getInstance ()->create (LoggerInterface::class);
68
68
}
69
69
0 commit comments