1
1
<?php
2
2
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
3
12
namespace Symfony \UX \Icons \Tests \Fixtures ;
4
13
5
14
use Psr \Log \NullLogger ;
@@ -26,9 +35,9 @@ public function registerBundles(): iterable
26
35
yield new UXIconsBundle ();
27
36
}
28
37
29
- protected function configureContainer (ContainerConfigurator $ c ): void
38
+ protected function configureContainer (ContainerConfigurator $ container ): void
30
39
{
31
- $ c ->extension ('framework ' , [
40
+ $ container ->extension ('framework ' , [
32
41
'secret ' => 'S3CRET ' ,
33
42
'test ' => true ,
34
43
'router ' => ['utf8 ' => true ],
@@ -37,21 +46,22 @@ protected function configureContainer(ContainerConfigurator $c): void
37
46
'php_errors ' => ['log ' => true ],
38
47
'property_access ' => true ,
39
48
'http_client ' => true ,
49
+ 'handle_all_throwables ' => true ,
40
50
]);
41
51
42
- $ c ->extension ('twig ' , [
43
- 'default_path ' => __DIR__ . '/templates ' ,
52
+ $ container ->extension ('twig ' , [
53
+ 'default_path ' => __DIR__ . '/templates ' ,
44
54
]);
45
55
46
- $ c ->extension ('twig_component ' , [
56
+ $ container ->extension ('twig_component ' , [
47
57
'defaults ' => [],
48
58
'anonymous_template_directory ' => 'components ' ,
49
59
]);
50
60
51
- $ c ->extension ('ux_icons ' , [
61
+ $ container ->extension ('ux_icons ' , [
52
62
'icon_dir ' => '%kernel.project_dir%/tests/Fixtures/icons ' ,
53
63
]);
54
64
55
- $ c ->services ()->set ('logger ' , NullLogger::class);
65
+ $ container ->services ()->set ('logger ' , NullLogger::class);
56
66
}
57
67
}
0 commit comments