Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerSessionUserContext.php
Go to the documentation of this file.
1 <?php
8 
11 
16 {
20  protected $_customerSession;
21 
27  public function __construct(
28  CustomerSession $customerSession
29  ) {
30  $this->_customerSession = $customerSession;
31  }
32 
36  public function getUserId()
37  {
38  return $this->_customerSession->getId();
39  }
40 
44  public function getUserType()
45  {
47  }
48 }