File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2828use Symfony \Component \Form \FormRenderer ;
2929use Symfony \Component \Mailer \Mailer ;
3030use Symfony \Component \Stopwatch \Stopwatch ;
31+ use Symfony \Component \Validator \Validator \ValidatorInterface ;
3132use Twig \Environment ;
3233
3334class 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 /**
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments