8000 minor #60304 [TwigBundle] bump the required Twig bridge version (xabbuh) · symfony/symfony@687a0c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 687a0c1

Browse files
committed
minor #60304 [TwigBundle] bump the required Twig bridge version (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [TwigBundle] bump the required Twig bridge version | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- a175dd4 bump the required Twig bridge version
2 parents e19fc0b + a175dd4 commit 687a0c1

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

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

Lines changed: 7 additions & 0 deletions
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/Tests/Functional/AttributeExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function registerBundles(): iterable
4343
public function registerContainerConfiguration(LoaderInterface $loader): void
4444
{
4545
$loader->load(static function (ContainerBuilder $container) {
46+
$container->setParameter('kernel.secret', 'secret');
4647
$container->register(StaticExtensionWithAttributes::class, StaticExtensionWithAttributes::class)
4748
->setAutoconfigured(true);
4849
$container->register(RuntimeExtensionWithAttributes::class, RuntimeExtensionWithAttributes::class)

src/Symfony/Bundle/TwigBundle/composer.json

Lines changed: 1 addition & 1 deletion
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)
0