File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
src/LiveComponent/tests/Fixtures Expand file tree Collapse file tree 1 file changed +19
-2
lines changed 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