Skip to content

Commit 7212081

Browse files
committed
fix lowest build
1 parent 3d74b19 commit 7212081

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

tests/Resources/app/AppKernel.php

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,17 @@ class AppKernel extends Kernel
1919
*/
2020
private static $cacheDir;
2121

22-
/**
23-
* {@inheritdoc}
24-
*/
2522
public function registerBundles(): iterable
2623
{
27-
$bundles = [
24+
return [
2825
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
2926
new \Symfony\Bundle\TwigBundle\TwigBundle(),
3027
new \Http\HttplugBundle\HttplugBundle(),
28+
new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
3129
];
32-
33-
if (in_array($this->getEnvironment(), ['dev', 'test', 'psr18'])) {
34-
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
35-
}
36-
37-
return $bundles;
3830
}
3931

40-
public function registerContainerConfiguration(LoaderInterface $loader)
32+
public function registerContainerConfiguration(LoaderInterface $loader): void
4133
{
4234
$loader->load(function (ContainerBuilder $container) use ($loader) {
4335
$container->loadFromExtension('framework', [
@@ -55,7 +47,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
5547
->setPublic(true)
5648
;
5749

58-
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
50+
$loader->load(__DIR__.'/config/config_test.yml');
5951
if ($this->isDebug()) {
6052
$loader->load(__DIR__.'/config/config_debug.yml');
6153
}
@@ -79,9 +71,6 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
7971
return $collection;
8072
}
8173

82-
/**
83-
* {@inheritdoc}
84-
*/
8574
public function getCacheDir(): string
8675
{
8776
if (null === self::$cacheDir) {
@@ -91,15 +80,12 @@ public function getCacheDir(): string
9180
return sys_get_temp_dir().'/httplug-bundle/'.self::$cacheDir;
9281
}
9382

94-
/**
95-
* {@inheritdoc}
96-
*/
9783
public function getLogDir(): string
9884
{
9985
return sys_get_temp_dir().'/httplug-bundle/logs';
10086
}
10187

102-
public function indexAction()
88+
public function indexAction(): Response
10389
{
10490
return new Response();
10591
}

0 commit comments

Comments
 (0)