diff --git a/src/DependencyInjection/Compiler/ChannelContextPass.php b/src/DependencyInjection/Compiler/ChannelContextPass.php deleted file mode 100644 index c90e2e852..000000000 --- a/src/DependencyInjection/Compiler/ChannelContextPass.php +++ /dev/null @@ -1,19 +0,0 @@ -removeDefinition('sylius.listener.user_impersonated'); - - $container->removeDefinition('sylius.context.channel.cached'); - } -} diff --git a/src/SyliusShopApiPlugin.php b/src/SyliusShopApiPlugin.php index 512d71fde..533ec53fd 100644 --- a/src/SyliusShopApiPlugin.php +++ b/src/SyliusShopApiPlugin.php @@ -5,18 +5,9 @@ namespace Sylius\ShopApiPlugin; use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait; -use Sylius\ShopApiPlugin\DependencyInjection\Compiler\ChannelContextPass; -use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; final class SyliusShopApiPlugin extends Bundle { use SyliusPluginTrait; - - public function build(ContainerBuilder $container): void - { - parent::build($container); - - $container->addCompilerPass(new ChannelContextPass()); - } }