Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerLogout.php
Go to the documentation of this file.
1 <?php
8 
12 
18 {
22  protected $customerSession;
23 
28  {
29  $this->customerSession = $customerSession;
30  }
31 
38  public function execute(Observer $observer)
39  {
40  $this->customerSession->setWishlistItemCount(0);
41  }
42 }
__construct(Session $customerSession)