34 private $moduleManager;
46 private $groupRepository;
53 private $addressManager;
75 $this->cacheConfig = $cacheConfig;
76 $this->addressManager = $addressManager;
86 if ($this->moduleManager->isEnabled(
'Magento_PageCache')
87 && $this->cacheConfig->isEnabled()
88 && $this->taxHelper->isCatalogPriceDisplayAffectedByTax()
92 $customerGroupId =
$customer->getGroupId();
93 $customerGroup = $this->groupRepository->getById($customerGroupId);
94 $customerTaxClassId = $customerGroup->getTaxClassId();
95 $this->customerSession->setCustomerTaxClassId($customerTaxClassId);
99 $this->addressManager->setDefaultAddressAfterLogIn(
$addresses);
__construct(GroupRepositoryInterface $groupRepository, Session $customerSession, Data $taxHelper, Manager $moduleManager, Config $cacheConfig, TaxAddressManagerInterface $addressManager)
execute(Observer $observer)