File tree 2 files changed +8
-1
lines changed
src/Symfony/Bundle/TwigBundle
Tests/DependencyInjection
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 28
28
use Symfony \Component \Form \FormRenderer ;
29
29
use Symfony \Component \Mailer \Mailer ;
30
30
use Symfony \Component \Stopwatch \Stopwatch ;
31
+ use Symfony \Component \Validator \Validator \ValidatorInterface ;
31
32
use Twig \Environment ;
32
33
33
34
class TwigExtensionTest extends TestCase
@@ -54,6 +55,12 @@ public function testLoadEmptyConfiguration()
54
55
if (class_exists (Mailer::class)) {
55
56
$ this ->assertCount (2 , $ container ->getDefinition ('twig.mime_body_renderer ' )->getArguments ());
56
57
}
58
+
59
+ if (interface_exists (ValidatorInterface::class)) {
60
+ $ this ->assertTrue ($ container ->hasDefinition ('twig.validator ' ));
61
+ } else {
62
+ $ this ->assertFalse ($ container ->hasDefinition ('twig.validator ' ));
63
+ }
57
64
}
58
65
59
66
/**
Original file line number Diff line number Diff line change 20
20
"composer-runtime-api" : " >=2.1" ,
21
21
"symfony/config" : " ^7.3" ,
22
22
"symfony/dependency-injection" : " ^6.4|^7.0" ,
23
- "symfony/twig-bridge" : " ^6.4|^7.0 " ,
23
+ "symfony/twig-bridge" : " ^7.3 " ,
24
24
"symfony/http-foundation" : " ^6.4|^7.0" ,
25
25
"symfony/http-kernel" : " ^6.4|^7.0" ,
26
26
"twig/twig" : " ^3.12"
You can’t perform that action at this time.
0 commit comments