@@ -19,25 +19,17 @@ class AppKernel extends Kernel
19
19
*/
20
20
private static $ cacheDir ;
21
21
22
- /**
23
- * {@inheritdoc}
24
- */
25
22
public function registerBundles (): iterable
26
23
{
27
- $ bundles = [
24
+ return [
28
25
new \Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
29
26
new \Symfony \Bundle \TwigBundle \TwigBundle (),
30
27
new \Http \HttplugBundle \HttplugBundle (),
28
+ new Symfony \Bundle \WebProfilerBundle \WebProfilerBundle (),
31
29
];
32
-
33
- if (in_array ($ this ->getEnvironment (), ['dev ' , 'test ' , 'psr18 ' ])) {
34
- $ bundles [] = new Symfony \Bundle \WebProfilerBundle \WebProfilerBundle ();
35
- }
36
-
37
- return $ bundles ;
38
30
}
39
31
40
- public function registerContainerConfiguration (LoaderInterface $ loader )
32
+ public function registerContainerConfiguration (LoaderInterface $ loader ): void
41
33
{
42
34
$ loader ->load (function (ContainerBuilder $ container ) use ($ loader ) {
43
35
$ container ->loadFromExtension ('framework ' , [
@@ -55,7 +47,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
55
47
->setPublic (true )
56
48
;
57
49
58
- $ loader ->load (__DIR__ .'/config/config_ ' . $ this -> getEnvironment (). ' .yml ' );
50
+ $ loader ->load (__DIR__ .'/config/config_test .yml ' );
59
51
if ($ this ->isDebug ()) {
60
52
$ loader ->load (__DIR__ .'/config/config_debug.yml ' );
61
53
}
@@ -79,9 +71,6 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
79
71
return $ collection ;
80
72
}
81
73
82
- /**
83
- * {@inheritdoc}
84
- */
85
74
public function getCacheDir (): string
86
75
{
87
76
if (null === self ::$ cacheDir ) {
@@ -91,15 +80,12 @@ public function getCacheDir(): string
91
80
return sys_get_temp_dir ().'/httplug-bundle/ ' .self ::$ cacheDir ;
92
81
}
93
82
94
- /**
95
- * {@inheritdoc}
96
- */
97
83
public function getLogDir (): string
98
84
{
99
85
return sys_get_temp_dir ().'/httplug-bundle/logs ' ;
100
86
}
101
87
102
- public function indexAction ()
88
+ public function indexAction (): Response
103
89
{
104
90
return new Response ();
105
91
}
0 commit comments