Skip to content

Commit 6c8179a

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-32567: Refactor address, review, ajax directories
- Changed Backend Result Redirect & Forward to Framework Result;
1 parent 842bf6f commit 6c8179a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/code/Magento/Customer/Controller/Address.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ class Address extends \Magento\Framework\App\Action\Action
5050
protected $_dataProcessor;
5151

5252
/**
53-
* @var \Magento\Backend\Model\View\Result\RedirectFactory
53+
* @var \Magento\Framework\Controller\Result\Redirect
5454
*/
5555
protected $resultRedirectFactory;
5656

5757
/**
58-
* @var \Magento\Backend\Model\View\Result\ForwardFactory
58+
* @var \Magento\Framework\Controller\Result\ForwardFactory
5959
*/
6060
protected $resultForwardFactory;
6161

@@ -73,8 +73,8 @@ class Address extends \Magento\Framework\App\Action\Action
7373
* @param \Magento\Customer\Api\Data\AddressDataBuilder $addressDataBuilder
7474
* @param \Magento\Customer\Api\Data\RegionDataBuilder $regionDataBuilder
7575
* @param \Magento\Framework\Reflection\DataObjectProcessor $dataProcessor
76-
* @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
77-
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
76+
* @param \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory
77+
* @param \Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory
7878
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
7979
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
8080
*/
@@ -87,8 +87,8 @@ public function __construct(
8787
\Magento\Customer\Api\Data\AddressDataBuilder $addressDataBuilder,
8888
\Magento\Customer\Api\Data\RegionDataBuilder $regionDataBuilder,
8989
\Magento\Framework\Reflection\DataObjectProcessor $dataProcessor,
90-
\Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory,
91-
\Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory,
90+
\Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory,
91+
\Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory,
9292
\Magento\Framework\View\Result\PageFactory $resultPageFactory
9393
) {
9494
$this->_customerSession = $customerSession;

app/code/Magento/Customer/Controller/Address/Index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Index extends \Magento\Customer\Controller\Address
2828
* @param \Magento\Customer\Api\Data\RegionDataBuilder $regionDataBuilder
2929
* @param \Magento\Framework\Reflection\DataObjectProcessor $dataProcessor
3030
* @param CustomerRepositoryInterface $customerRepository
31-
* @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
32-
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
31+
* @param \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory
32+
* @param \Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory
3333
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
3434
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
3535
*/
@@ -42,8 +42,8 @@ public function __construct(
4242
\Magento\Customer\Api\Data\AddressDataBuilder $addressDataBuilder,
4343
\Magento\Customer\Api\Data\RegionDataBuilder $regionDataBuilder,
4444
\Magento\Framework\Reflection\DataObjectProcessor $dataProcessor,
45-
\Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory,
46-
\Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory,
45+
\Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory,
46+
\Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory,
4747
\Magento\Framework\View\Result\PageFactory $resultPageFactory,
4848
CustomerRepositoryInterface $customerRepository
4949
) {

0 commit comments

Comments
 (0)