| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-wishlist/Observer/ |
| Current File : //var/www/www.indacotrentino.com/www/vendor/magento/module-wishlist/Observer/CustomerLogin.php |
<?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();
}
}