mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 20:47:28 +00:00
use getShareDir as an indicator of Symfony version
This commit is contained in:
committed by
Fabien Potencier
parent
8074ddcab8
commit
c4dcd0bb8c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user