From 6563c5831b7ab6135275aa0ae2a7bdf1311353b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chru=C5=9Bciel?= Date: Sun, 22 Sep 2019 12:44:04 +0200 Subject: [PATCH] [Performance] Add back cached channel context --- .../Compiler/ChannelContextPass.php | 19 ------------------- src/SyliusShopApiPlugin.php | 9 --------- 2 files changed, 28 deletions(-) delete mode 100644 src/DependencyInjection/Compiler/ChannelContextPass.php 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()); - } }