8000 [WebProfilerBundle] Set NullLogger for functional tests · symfony/symfony@0b95199 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b95199

Browse files
committed
[WebProfilerBundle] Set NullLogger for functional tests
1 parent 6ee6b2e commit 0b95199

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Functional/WebProfilerBundleKernel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Symfony\Bundle\WebProfilerBundle\Tests\Functional;
44

5+
use Psr\Log\NullLogger;
56
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
67
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
78
use Symfony\Bundle\TwigBundle\TwigBundle;
@@ -73,6 +74,11 @@ public function getLogDir()
7374
return sys_get_temp_dir().'/log-'.spl_object_hash($this);
7475
}
7576

77+
protected function build(ContainerBuilder $container)
78+
{
79+
$container->register('logger', NullLogger::class);
80+
}
81+
7682
public function homepageController()
7783
{
7884
return new Response('<html><head></head><body>Homepage Controller.</body></html>');

0 commit comments

Comments
 (0)
0