Skip to content

Commit f6b0a55

Browse files
committed
Make sure the tests pass
1 parent 2b2ad74 commit f6b0a55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DependencyInjection/HttplugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function load(array $configs, ContainerBuilder $container)
2727
$loader->load('services.xml');
2828
$loader->load('plugins.xml');
2929
$loader->load('discovery.xml');
30-
if ($config['toolbar'] && $container->getParameter('kernel.debug')) {
30+
if ($config['toolbar'] && $container->hasParameter('kernel.debug') && $container->getParameter('kernel.debug')) {
3131
$loader->load('data-collector.xml');
3232
$config['_inject_journal_plugin'] = true;
3333
}

Tests/Unit/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function testEmptyConfiguration()
3737
'stream_factory' => null,
3838
),
3939
'clients'=>array(),
40+
'toolbar'=>true,
4041
);
4142

4243
$formats = array_map(function ($path) {
@@ -68,6 +69,7 @@ public function testSupportsAllConfigFormats()
6869
'stream_factory' => 'Http\Message\StreamFactory\GuzzleStreamFactory',
6970
),
7071
'clients'=>array(),
72+
'toolbar'=>true,
7173
);
7274

7375
$formats = array_map(function ($path) {

0 commit comments

Comments
 (0)