custom/plugins/TwigelStrengthPlugin/src/TwigelStrengthPlugin.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Twigel\StrengthPlugin;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  5. use Twigel\StrengthPlugin\Migration\Migration1692624020StrengthVote;
  6. use Twigel\StrengthPlugin\Migration\Migration1692700631CustomerVoteProduct;
  7. use Twigel\StrengthPlugin\Service\TwigelStrengthGroupOptions;
  8. class TwigelStrengthPlugin extends Plugin
  9. {
  10.     public function install(InstallContext $installContext): void
  11.     {
  12.         parent::install($installContext);
  13.         (new Migration1692624020StrengthVote())->update($this->container->get('Doctrine\DBAL\Connection'));
  14.         (new Migration1692700631CustomerVoteProduct())->update($this->container->get('Doctrine\DBAL\Connection'));
  15.         $service = new TwigelStrengthGroupOptions($this->container->get('property_group.repository'), $this->container->get('property_group_option.repository'));
  16.         $service->setGroup();
  17.     }
  18. }