|
6 | 6 | namespace Magento\Newsletter\Model\Plugin;
|
7 | 7 |
|
8 | 8 | use Magento\Customer\Api\CustomerRepositoryInterface as CustomerRepository;
|
| 9 | +use Magento\Customer\Api\Data\CustomerExtensionInterface; |
9 | 10 | use Magento\Customer\Api\Data\CustomerInterface;
|
| 11 | +use Magento\Framework\Api\ExtensionAttributesFactory; |
10 | 12 | use Magento\Framework\Api\SearchCriteria;
|
| 13 | +use Magento\Framework\Api\SearchCriteriaInterface; |
11 | 14 | use Magento\Framework\Api\SearchResults;
|
12 |
| -use Magento\Newsletter\Model\SubscriberFactory; |
13 |
| -use Magento\Framework\Api\ExtensionAttributesFactory; |
14 | 15 | use Magento\Newsletter\Model\ResourceModel\Subscriber;
|
15 |
| -use Magento\Customer\Api\Data\CustomerExtensionInterface; |
| 16 | +use Magento\Newsletter\Model\SubscriberFactory; |
16 | 17 |
|
17 | 18 | class CustomerPlugin
|
18 | 19 | {
|
@@ -176,8 +177,11 @@ public function afterGetById(CustomerRepository $subject, CustomerInterface $cus
|
176 | 177 | * @return SearchResults
|
177 | 178 | * @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
178 | 179 | */
|
179 |
| - public function afterGetList(CustomerRepository $subject, SearchResults $searchResults, SearchCriteria $searchCriteria) |
180 |
| - { |
| 180 | + public function afterGetList( |
| 181 | + CustomerRepository $subject, |
| 182 | + SearchResults $searchResults, |
| 183 | + SearchCriteriaInterface $searchCriteria |
| 184 | + ) { |
181 | 185 |
|
182 | 186 | foreach ($searchResults->getItems() as $customer) {
|
183 | 187 | $extensionAttributes = $customer->getExtensionAttributes();
|
|
0 commit comments