vendor/setono/sylius-feed-plugin/src/SetonoSyliusFeedPlugin.php line 15

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