10
10
use Magento \Framework \App \ObjectManager ;
11
11
use Magento \Framework \Exception \MailException ;
12
12
use Magento \Framework \Exception \NoSuchEntityException ;
13
- use Magento \Framework \Stdlib \DateTime \DateTime ;
14
13
15
14
/**
16
15
* Subscriber model
@@ -96,7 +95,7 @@ class Subscriber extends \Magento\Framework\Model\AbstractModel
96
95
/**
97
96
* Date
98
97
*
99
- * @var DateTime
98
+ * @var \Magento\Framework\Stdlib\DateTime\ DateTime
100
99
*/
101
100
private $ dateTime ;
102
101
@@ -143,7 +142,7 @@ class Subscriber extends \Magento\Framework\Model\AbstractModel
143
142
* @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
144
143
* @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
145
144
* @param array $data
146
- * @param DateTime|null $dateTime
145
+ * @param \Magento\Framework\Stdlib\DateTime\ DateTime|null $dateTime
147
146
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
148
147
*/
149
148
public function __construct (
@@ -160,7 +159,7 @@ public function __construct(
160
159
\Magento \Framework \Model \ResourceModel \AbstractResource $ resource = null ,
161
160
\Magento \Framework \Data \Collection \AbstractDb $ resourceCollection = null ,
162
161
array $ data = [],
163
- DateTime $ dateTime = null
162
+ \ Magento \ Framework \ Stdlib \ DateTime \ DateTime $ dateTime = null
164
163
) {
165
164
$ this ->_newsletterData = $ newsletterData ;
166
165
$ this ->_scopeConfig = $ scopeConfig ;
@@ -170,7 +169,8 @@ public function __construct(
170
169
$ this ->customerRepository = $ customerRepository ;
171
170
$ this ->customerAccountManagement = $ customerAccountManagement ;
172
171
$ this ->inlineTranslation = $ inlineTranslation ;
173
- $ this ->dateTime = $ dateTime ?: ObjectManager::getInstance ()->get (DateTime::class);
172
+ $ this ->dateTime = $ dateTime
173
+ ?: ObjectManager::getInstance ()->get (\Magento \Framework \Stdlib \DateTime \DateTime::class);
174
174
parent ::__construct ($ context , $ registry , $ resource , $ resourceCollection , $ data );
175
175
}
176
176
0 commit comments