<?php declare(strict_types=1);
namespace Twigel\StrengthPlugin;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Twigel\StrengthPlugin\Migration\Migration1692624020StrengthVote;
use Twigel\StrengthPlugin\Migration\Migration1692700631CustomerVoteProduct;
use Twigel\StrengthPlugin\Service\TwigelStrengthGroupOptions;
class TwigelStrengthPlugin extends Plugin
{
public function install(InstallContext $installContext): void
{
parent::install($installContext);
(new Migration1692624020StrengthVote())->update($this->container->get('Doctrine\DBAL\Connection'));
(new Migration1692700631CustomerVoteProduct())->update($this->container->get('Doctrine\DBAL\Connection'));
$service = new TwigelStrengthGroupOptions($this->container->get('property_group.repository'), $this->container->get('property_group_option.repository'));
$service->setGroup();
}
}