File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/TwigComponent/tests/Fixtures Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,19 @@ public function registerBundles(): iterable
35
35
36
36
protected function configureContainer (ContainerConfigurator $ c ): void
37
37
{
38
- $ c -> extension ( ' framework ' , [
38
+ $ frameworkConfig = [
39
39
'secret ' => 'S3CRET ' ,
40
40
'test ' => true ,
41
41
'router ' => ['utf8 ' => true ],
42
42
'secrets ' => false ,
43
43
'http_method_override ' => false ,
44
- 'handle_all_throwables ' => true ,
45
44
'php_errors ' => ['log ' => true ],
46
- ]);
45
+ ];
46
+ if (self ::VERSION_ID >= 60200 ) {
47
+ $ frameworkConfig ['handle_all_throwables ' ] = true ;
48
+ }
49
+ $ c ->extension ('framework ' , $ frameworkConfig );
50
+
47
51
$ c ->extension ('twig ' , [
48
52
'default_path ' => '%kernel.project_dir%/tests/Fixtures/templates ' ,
49
53
]);
You can’t perform that action at this time.
0 commit comments