File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 38
38
"symfony/validator" : " ^5.4|^6.0"
39
39
},
40
40
"require-dev" : {
41
+ "symfony/expression-language" : " ^5.4|^6.0" ,
41
42
"symfony/framework-bundle" : " ^5.4|^6.0" ,
42
43
"symfony/phpunit-bridge" : " ^5.4|^6.0" ,
43
44
"symfony/twig-bundle" : " ^5.4|^6.0" ,
Original file line number Diff line number Diff line change 40
40
"doctrine/persistence" : " ^2.5.2|^3.0" ,
41
41
"phpdocumentor/reflection-docblock" : " 5.x-dev" ,
42
42
"symfony/dependency-injection" : " ^5.4|^6.0" ,
43
+ "symfony/expression-language" : " ^5.4|^6.0" ,
43
44
"symfony/form" : " ^5.4|^6.0" ,
44
45
"symfony/options-resolver" : " ^5.4|^6.0" ,
45
46
"symfony/framework-bundle" : " ^5.4|^6.0" ,
Original file line number Diff line number Diff line change @@ -83,15 +83,32 @@ public function process(ContainerBuilder $container): void
83
83
84
84
protected function configureContainer (ContainerConfigurator $ c ): void
85
85
{
86
- $ c -> extension ( ' framework ' , [
86
+ $ frameworkConfig = [
87
87
'secret ' => 'S3CRET ' ,
88
88
'test ' => true ,
89
89
'router ' => ['utf8 ' => true ],
90
90
'secrets ' => false ,
91
91
'session ' => ['storage_factory_id ' => 'session.storage.factory.mock_file ' ],
92
92
'http_method_override ' => false ,
93
93
'property_info ' => ['enabled ' => true ],
94
- ]);
94
+ 'php_errors ' => ['log ' => true ],
95
+ 'validation ' => [
96
+ 'email_validation_mode ' => 'html5 ' ,
97
+ ],
98
+ ];
99
+
100
+ if (self ::VERSION_ID >= 60400 ) {
101
+ $ frameworkConfig ['handle_all_throwables ' ] = true ;
102
+ $ frameworkConfig ['session ' ] = [
103
+ 'storage_factory_id ' => 'session.storage.factory.mock_file ' ,
104
+ 'cookie_secure ' => 'auto ' ,
105
+ 'cookie_samesite ' => 'lax ' ,
106
+ 'handler_id ' => null ,
107
+ ];
108
+ $ frameworkConfig ['annotations ' ]['enabled ' ] = false ;
109
+ }
110
+
111
+ $ c ->extension ('framework ' , $ frameworkConfig );
95
112
96
113
$ c ->extension ('twig ' , [
97
114
'default_path ' => '%kernel.project_dir%/tests/Fixtures/templates ' ,
You can’t perform that action at this time.
0 commit comments