vendor/synolia/sylius-mail-tester-plugin/src/SynoliaSyliusMailTesterPlugin.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Synolia\SyliusMailTesterPlugin;
  4. use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. use Synolia\SyliusMailTesterPlugin\DependencyInjection\Pass\EmailKeysDataRetrieverCompilerPass;
  8. use Synolia\SyliusMailTesterPlugin\DependencyInjection\Pass\ResolvableFormTypeResolverCompilerPass;
  9. final class SynoliaSyliusMailTesterPlugin extends Bundle
  10. {
  11.     use SyliusPluginTrait;
  12.     /**
  13.      * @inheritdoc
  14.      */
  15.     public function build(ContainerBuilder $container): void
  16.     {
  17.         parent::build($container);
  18.         $container->addCompilerPass(new ResolvableFormTypeResolverCompilerPass());
  19.         $container->addCompilerPass(new EmailKeysDataRetrieverCompilerPass());
  20.     }
  21. }