66namespace Magento \Framework \View ;
77
88use Magento \Framework \App \ObjectManager ;
9- use Magento \Framework \Unserialize \SecureUnserializer as Unserialize ;
9+ use Magento \Framework \Unserialize \SecureUnserializer ;
1010use Psr \Log \LoggerInterface ;
1111
1212/**
@@ -36,7 +36,7 @@ class DesignExceptions
3636 protected $ scopeType ;
3737
3838 /**
39- * @var Unserialize
39+ * @var SecureUnserializer
4040 */
4141 private $ secureUnserializer ;
4242
@@ -49,21 +49,21 @@ class DesignExceptions
4949 * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
5050 * @param string $exceptionConfigPath
5151 * @param string $scopeType
52- * @param Unserialize |null $secureUnserializer
52+ * @param SecureUnserializer |null $secureUnserializer
5353 * @param LoggerInterface|null $logger
5454 */
5555 public function __construct (
5656 \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
5757 $ exceptionConfigPath ,
5858 $ scopeType ,
59- Unserialize $ secureUnserializer = null ,
59+ SecureUnserializer $ secureUnserializer = null ,
6060 LoggerInterface $ logger = null
6161 ) {
6262 $ this ->scopeConfig = $ scopeConfig ;
6363 $ this ->exceptionConfigPath = $ exceptionConfigPath ;
6464 $ this ->scopeType = $ scopeType ;
6565 $ this ->secureUnserializer = $ secureUnserializer ?:
66- ObjectManager::getInstance ()->create (Unserialize ::class);
66+ ObjectManager::getInstance ()->create (SecureUnserializer ::class);
6767 $ this ->logger = $ logger ?: ObjectManager::getInstance ()->create (LoggerInterface::class);
6868 }
6969
0 commit comments