use getShareDir as an indicator of Symfony version

This commit is contained in:
Tac Tacelosky
2025-12-03 08:23:41 -05:00
committed by Fabien Potencier
parent 8074ddcab8
commit c4dcd0bb8c
+2 -1
View File
@@ -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