<?php

namespace KupShop\ProductSetsBundle\Resources\script;

use KupShop\AdminBundle\Util\Script\Script;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
use KupShop\ProductSetsBundle\EventListener\CronListener;

class MultiSetPrices extends Script
{
    protected static $name = 'Přepočítání cen Multisetů';

    protected function run(array $arguments): void
    {
        $listener = ServiceContainer::getService(CronListener::class);

        $listener->calculateMultisetFromPrice();
    }
}

return MultiSetPrices::class;
