Skip to content

Commit 25d892a

Browse files
Merge branch '5.0' into 5.1
* 5.0: minor #37141 [Messenger] fix forward compatibility with Doctrine DBAL 2.11+ (xabbuh) fix forward compatibility with Doctrine DBAL 3 [WebProfilerBundle] Set NullLogger for functional tests [Mailer] Fixed generator bug when creating multiple transports using Transport::fromDsn [FrameworkBundle] Fix XSD definition Update welcome.html.php [travis] add nightly to allowed failures
2 parents db62d60 + 0725f9d commit 25d892a

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;
@@ -62,6 +63,11 @@ public function getLogDir()
6263
return sys_get_temp_dir().'/log-'.spl_object_hash($this);
6364
}
6465

66+
protected function build(ContainerBuilder $container)
67+
{
68+
$container->register('logger', NullLogger::class);
69+
}
70+
6571
public function homepageController()
6672
{
6773
return new Response('<html><head></head><body>Homepage Controller.</body></html>');

0 commit comments

Comments
 (0)