vendor/setono/sylius-catalog-promotion-plugin/src/SetonoSyliusCatalogPromotionPlugin.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Setono\SyliusCatalogPromotionPlugin;
  4. use Setono\SyliusCatalogPromotionPlugin\DependencyInjection\Compiler\RegisterRulesPass;
  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 SetonoSyliusCatalogPromotionPlugin extends AbstractResourceBundle
  10. {
  11.     use SyliusPluginTrait;
  12.     public function getSupportedDrivers(): array
  13.     {
  14.         return [
  15.             SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
  16.         ];
  17.     }
  18.     public function build(ContainerBuilder $container): void
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new RegisterRulesPass());
  22.     }
  23. }