Skip to content

Commit a175dd4

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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy