From c4dcd0bb8cbd01f86832d008c4be47c49465b3b4 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Wed, 3 Dec 2025 08:23:41 -0500 Subject: [PATCH] use getShareDir as an indicator of Symfony version --- extra/twig-extra-bundle/TwigExtraBundle.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/twig-extra-bundle/TwigExtraBundle.php b/extra/twig-extra-bundle/TwigExtraBundle.php index e2d181145..495785623 100644 --- a/extra/twig-extra-bundle/TwigExtraBundle.php +++ b/extra/twig-extra-bundle/TwigExtraBundle.php @@ -13,9 +13,10 @@ namespace Twig\Extra\TwigExtraBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; +use Symfony\Component\HttpKernel\KernelInterface; use Twig\Extra\TwigExtraBundle\DependencyInjection\Compiler\MissingExtensionSuggestorPass; -if (!method_exists(ContainerBuilder::class, 'getAutoconfiguredAttributes')) { +if (method_exists(KernelInterface::class, 'getShareDir')) { class TwigExtraBundle extends Bundle { public function build(ContainerBuilder $container): void