Skip to content

Commit 8308f7f

Browse files
committed
bug #4722 use getShareDir as an indicator of Symfony version (tacman)
This PR was squashed before being merged into the 3.x branch. Discussion ---------- use getShareDir as an indicator of Symfony version Proposal to fix #4719 , replaces #4721 Commits ------- c4dcd0b use getShareDir as an indicator of Symfony version
2 parents 8074ddc + c4dcd0b commit 8308f7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extra/twig-extra-bundle/TwigExtraBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\HttpKernel\Bundle\Bundle;
16+
use Symfony\Component\HttpKernel\KernelInterface;
1617
use Twig\Extra\TwigExtraBundle\DependencyInjection\Compiler\MissingExtensionSuggestorPass;
1718

18-
if (!method_exists(ContainerBuilder::class, 'getAutoconfiguredAttributes')) {
19+
if (method_exists(KernelInterface::class, 'getShareDir')) {
1920
class TwigExtraBundle extends Bundle
2021
{
2122
public function build(ContainerBuilder $container): void

0 commit comments

Comments
 (0)