File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
app/code/Magento/Customer/view/frontend/templates/js Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
use Magento \Customer \ViewModel \Customer \Data ;
7
- use Magento \Framework \App \ObjectManager ;
8
7
use Magento \Customer \ViewModel \CookieSettings ;
9
8
10
9
/** @var \Magento\Customer\Block\CustomerData $block */
11
10
12
11
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper
13
12
/** @var Auth $auth */
14
- $ auth = $ block ->getAuth () ?? ObjectManager:: getInstance ()-> get (Auth::class) ;
13
+ $ auth = $ block ->getAuth ();
15
14
/** @var JsonSerializer $jsonSerializer */
16
- $ jsonSerializer = $ block ->getJsonSerializer () ??
17
- ObjectManager::getInstance ()->get (JsonSerializer::class);
15
+ $ jsonSerializer = $ block ->getJsonSerializer ();
18
16
$ customerDataUrl = $ block ->getCustomerDataUrl ('customer/account/updateSession ' );
19
17
$ expirableSectionNames = $ block ->getExpirableSectionNames ();
20
18
/** @var CookieSettings $cookieSettings */
You can’t perform that action at this time.
0 commit comments