| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Wishlist\Observer;
- use Magento\Framework\Event\Observer;
- use Magento\Framework\Event\ObserverInterface;
- use Magento\Wishlist\Helper\Data;
- /**
- * Class CustomerLogin
- * @package Magento\Wishlist\Observer
- */
- class CustomerLogin implements ObserverInterface
- {
- /**
- * @var \Magento\Wishlist\Helper\Data
- */
- protected $wishlistData;
- /**
- * @param Data $wishlistData
- */
- public function __construct(Data $wishlistData)
- {
- $this->wishlistData = $wishlistData;
- }
- /**
- * @param Observer $observer
- * @return void
- */
- public function execute(Observer $observer)
- {
- $this->wishlistData->calculate();
- }
- }
|