Skip to content

Commit 0725f9d

Browse files
Merge branch '4.4' into 5.0
* 4.4: 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 db9ec95 + e86d3e8 commit 0725f9d

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

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

0 commit comments

Comments
 (0)