Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
EmulateCustomerObserver Class Reference
Inheritance diagram for EmulateCustomerObserver:
ObserverInterface

Public Member Functions

 __construct (\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository, \Magento\Customer\Api\AddressRepositoryInterface $addressRepository)
 
- Public Member Functions inherited from ObserverInterface
 execute (Observer $observer)
 

Protected Attributes

 $_customerSession
 
 $_persistentSession
 
 $_persistentData
 
 $customerRepository
 
 $addressRepository
 

Detailed Description

Class EmulateCustomer

Definition at line 13 of file EmulateCustomerObserver.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Persistent\Helper\Session  $persistentSession,
\Magento\Persistent\Helper\Data  $persistentData,
\Magento\Customer\Model\Session  $customerSession,
\Magento\Customer\Api\CustomerRepositoryInterface  $customerRepository,
\Magento\Customer\Api\AddressRepositoryInterface  $addressRepository 
)

Constructor

Parameters
\Magento\Persistent\Helper\Session$persistentSession
\Magento\Persistent\Helper\Data$persistentData
\Magento\Customer\Model\Session$customerSession
\Magento\Customer\Api\CustomerRepositoryInterface$customerRepository
\Magento\Customer\Api\AddressRepositoryInterface$addressRepository

Definition at line 57 of file EmulateCustomerObserver.php.

63  {
64  $this->_persistentSession = $persistentSession;
65  $this->_persistentData = $persistentData;
66  $this->_customerSession = $customerSession;
67  $this->customerRepository = $customerRepository;
68  $this->addressRepository = $addressRepository;
69  }
$persistentSession
Definition: persistent.php:11

Field Documentation

◆ $_customerSession

$_customerSession
protected

Definition at line 20 of file EmulateCustomerObserver.php.

◆ $_persistentData

$_persistentData
protected

Definition at line 34 of file EmulateCustomerObserver.php.

◆ $_persistentSession

$_persistentSession
protected

Definition at line 27 of file EmulateCustomerObserver.php.

◆ $addressRepository

$addressRepository
protected

Definition at line 46 of file EmulateCustomerObserver.php.

◆ $customerRepository

$customerRepository
protected

Definition at line 41 of file EmulateCustomerObserver.php.


The documentation for this class was generated from the following file: