custom/plugins/SwagPlatformDemoData/src/SwagPlatformDemoData.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Swag\PlatformDemoData;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  5. class SwagPlatformDemoData extends Plugin
  6. {
  7.     /**
  8.      * @var DemoDataService
  9.      */
  10.     private $demoDataService;
  11.     public function activate(ActivateContext $context): void
  12.     {
  13.         $this->demoDataService->generate($context->getContext());
  14.     }
  15.     /**
  16.      * @required
  17.      */
  18.     public function setDemoDataService(DemoDataService $demoDataService): void
  19.     {
  20.         $this->demoDataService $demoDataService;
  21.     }
  22. }