<?php

namespace KupShop\ElninoBundle\Actions\Frontend;

use KupShop\ElninoBundle\Util\ElninoMultiFetch;

class GiftHandler extends \KupShop\OrderDiscountBundle\Actions\Frontend\GiftHandler
{
    public function getVars(): array
    {
        $vars = parent::getVars();

        if (!empty($vars['products'])) {
            ElninoMultiFetch::fetchAdditionalData($vars['products']);
        }

        return $vars;
    }
}
