<?php

declare(strict_types=1);

namespace KupShop\ConvertorsBundle\Resources\script;

use KupShop\ConvertorsBundle\Utils\ConvertorsUtil;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;

class GenerateCacheScript extends \KupShop\AdminBundle\Util\Script\Script
{
    protected static $name = 'Generování cache převodníků';

    protected function run(array $arguments)
    {
        $convertorsUtil = ServiceContainer::getService(ConvertorsUtil::class);
        $convertorsUtil->generateCache();
    }
}

return GenerateCacheScript::class;
