Skip to content

Commit e86d3e8

Browse files
Merge branch '3.4' into 4.4
* 3.4: fix forward compatibility with Doctrine DBAL 3 [WebProfilerBundle] Set NullLogger for functional tests [travis] add nightly to allowed failures
2 parents b926467 + 41db5bc commit e86d3e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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;
@@ -66,6 +67,11 @@ public function getLogDir()
6667
return sys_get_temp_dir().'/log-'.spl_object_hash($this);
6768
}
6869

70+
protected function build(ContainerBuilder $container)
71+
{
72+
$container->register('logger', NullLogger::class);
73+
}
74+
6975
public function homepageController()
7076
{
7177
return new Response('<html><head></head><body>Homepage Controller.</body></html>');

0 commit comments

Comments
 (0)