Skip to content

Commit 662e0a6

Browse files
committed
MC-29555: Remove 'getSessionIdQueryParam()' calls
1 parent f4249b9 commit 662e0a6

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

app/code/Magento/Customer/Model/Session.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ class Session extends \Magento\Framework\Session\SessionManager
108108
*/
109109
protected $response;
110110

111+
/**
112+
* @var AccountConfirmation
113+
*/
114+
private $accountConfirmation;
115+
111116
/**
112117
* Session constructor.
113118
*

app/code/Magento/Email/Test/Unit/Model/AbstractTemplateTest.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ protected function setUp()
6969
$this->design = $this->getMockBuilder(\Magento\Framework\View\DesignInterface::class)
7070
->disableOriginalConstructor()
7171
->getMock();
72-
$this->registry = $this->getMockBuilder(\Magento\Framework\Registry::class)
73-
->disableOriginalConstructor()
74-
->getMock();
7572
$this->appEmulation = $this->getMockBuilder(\Magento\Store\Model\App\Emulation::class)
7673
->disableOriginalConstructor()
7774
->getMock();
@@ -150,11 +147,11 @@ protected function getModelMock(array $mockedMethods = [], array $data = [])
150147
}
151148

152149
/**
153-
* @param $variables array
154-
* @param $templateType string
155-
* @param $storeId int
156-
* @param $expectedVariables array
157-
* @param $expectedResult string
150+
* @param $variables array
151+
* @param $templateType string
152+
* @param $storeId int
153+
* @param $expectedVariables array
154+
* @param $expectedResult string
158155
* @dataProvider getProcessedTemplateProvider
159156
*/
160157
public function testGetProcessedTemplate($variables, $templateType, $storeId, $expectedVariables, $expectedResult)

app/code/Magento/Store/Controller/Store/Redirect.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Magento\Store\Api\StoreResolverInterface;
1717
use Magento\Store\Model\StoreResolver;
1818
use Magento\Framework\Session\SidResolverInterface;
19-
use Magento\Framework\Session\Generic as Session;
2019

2120
/**
2221
* Builds correct url to target store (group) and performs redirect.
@@ -33,36 +32,29 @@ class Redirect extends \Magento\Framework\App\Action\Action implements HttpGetAc
3332
*/
3433
private $storeResolver;
3534

36-
/**
37-
* @var Session
38-
*/
39-
private $session;
40-
4135
/**
4236
* @param Context $context
4337
* @param StoreRepositoryInterface $storeRepository
4438
* @param StoreResolverInterface $storeResolver
45-
* @param Session $session
39+
* @param \Magento\Framework\Session\Generic $session
4640
* @param SidResolverInterface $sidResolver
4741
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4842
*/
4943
public function __construct(
5044
Context $context,
5145
StoreRepositoryInterface $storeRepository,
5246
StoreResolverInterface $storeResolver,
53-
Session $session,
47+
\Magento\Framework\Session\Generic $session,
5448
SidResolverInterface $sidResolver
5549
) {
5650
parent::__construct($context);
5751
$this->storeRepository = $storeRepository;
5852
$this->storeResolver = $storeResolver;
59-
$this->session = $session;
6053
}
6154

6255
/**
63-
* Builds Redirect Url
56+
* @inheritDoc
6457
*
65-
* @return ResponseInterface|\Magento\Framework\Controller\ResultInterface
6658
* @throws NoSuchEntityException
6759
*/
6860
public function execute()

lib/internal/Magento/Framework/Session/SidResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class SidResolver implements SidResolverInterface
7070
* @param string $scopeType
7171
* @param array $sidNameMap
7272
* @param State|null $appState
73+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
7374
*/
7475
public function __construct(
7576
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
@@ -84,7 +85,6 @@ public function __construct(
8485
$this->request = $request;
8586
$this->sidNameMap = $sidNameMap;
8687
$this->_scopeType = $scopeType;
87-
$this->appState = $appState ?: \Magento\Framework\App\ObjectManager::getInstance()->get(State::class);
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)