Skip to content

Commit f7a0133

Browse files
committed
bump the required Twig bridge version
1 parent 195f1f1 commit f7a0133

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Symfony\Component\Form\FormRenderer;
2929
use Symfony\Component\Mailer\Mailer;
3030
use Symfony\Component\Stopwatch\Stopwatch;
31+
use Symfony\Component\Validator\Validator\ValidatorInterface;
3132
use Twig\Environment;
3233

3334
class TwigExtensionTest extends TestCase
@@ -54,6 +55,12 @@ public function testLoadEmptyConfiguration()
5455
if (class_exists(Mailer::class)) {
5556
$this->assertCount(2, $container->getDefinition('twig.mime_body_renderer')->getArguments());
5657
}
58+
59+
if (interface_exists(ValidatorInterface::class)) {
60+
$this->assertTrue($container->hasDefinition('twig.validator'));
61+
} else {
62+
$this->assertFalse($container->hasDefinition('twig.validator'));
63+
}
5764
}
5865

5966
/**

src/Symfony/Bundle/TwigBundle/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"composer-runtime-api": ">=2.1",
2121
"symfony/config": "^7.3",
2222
"symfony/dependency-injection": "^6.4|^7.0",
23-
"symfony/twig-bridge": "^6.4|^7.0",
23+
"symfony/twig-bridge": "^7.3",
2424
"symfony/http-foundation": "^6.4|^7.0",
2525
"symfony/http-kernel": "^6.4|^7.0",
2626
"twig/twig": "^3.12"

0 commit comments

Comments
 (0)