diff --git a/Bundles/Twig/src/Spryker/Zed/Twig/Communication/Plugin/Application/ZedGatewayTwigApplicationPlugin.php b/Bundles/Twig/src/Spryker/Zed/Twig/Communication/Plugin/Application/ZedGatewayTwigApplicationPlugin.php new file mode 100644 index 00000000000..7f279b99f19 --- /dev/null +++ b/Bundles/Twig/src/Spryker/Zed/Twig/Communication/Plugin/Application/ZedGatewayTwigApplicationPlugin.php @@ -0,0 +1,41 @@ +getFactory()->getTwigPlugins(); + foreach ($twigPlugins as $twigPlugin) { + if ($twigPlugin::class === self::PLUGIN_TO_IGNORE) { + continue; + } + + $twig = $twigPlugin->extend($twig, $container); + } + + return $twig; + } +} \ No newline at end of file