<?php
declare(strict_types=1);
namespace Setono\SyliusCatalogPromotionPlugin;
use Setono\SyliusCatalogPromotionPlugin\DependencyInjection\Compiler\RegisterRulesPass;
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
final class SetonoSyliusCatalogPromotionPlugin extends AbstractResourceBundle
{
use SyliusPluginTrait;
public function getSupportedDrivers(): array
{
return [
SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
];
}
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new RegisterRulesPass());
}
}