vendor/sylius/shop-api-plugin/src/SyliusShopApiPlugin.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  * (c) Paweł Jędrzejewski
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. declare(strict_types=1);
  9. namespace Sylius\ShopApiPlugin;
  10. use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
  11. use Sylius\ShopApiPlugin\CompilerPass\RemoveUserCartRecalculationListenerPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. final class SyliusShopApiPlugin extends Bundle
  15. {
  16.     use SyliusPluginTrait;
  17.     public function build(ContainerBuilder $container): void
  18.     {
  19.         parent::build($container);
  20.         $container->addCompilerPass(new RemoveUserCartRecalculationListenerPass());
  21.     }
  22. }