vendor/setono/sylius-gift-card-plugin/src/SetonoSyliusGiftCardPlugin.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Setono\SyliusGiftCardPlugin;
  4. use Setono\SyliusGiftCardPlugin\DependencyInjection\Compiler\AddAdjustmentsToOrderAdjustmentClearerPass;
  5. use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
  6. use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
  7. use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
  8. use Symfony\Component\DependencyInjection\ContainerBuilder;
  9. final class SetonoSyliusGiftCardPlugin extends AbstractResourceBundle
  10. {
  11.     use SyliusPluginTrait;
  12.     public function build(ContainerBuilder $container): void
  13.     {
  14.         parent::build($container);
  15.         $container->addCompilerPass(new AddAdjustmentsToOrderAdjustmentClearerPass());
  16.     }
  17.     public function getSupportedDrivers(): array
  18.     {
  19.         return [
  20.             SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
  21.         ];
  22.     }
  23. }