Skip to content

Commit 0ff0f79

Browse files
committed
Config collector by default
1 parent 97014ab commit 0ff0f79

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: src/ConfigCollectorFactory.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace PhpMiddleware\PhpDebugBar;
4+
5+
use DebugBar\DataCollector\ConfigCollector;
6+
use Interop\Container\ContainerInterface;
7+
8+
final class ConfigCollectorFactory
9+
{
10+
public function __invoke(ContainerInterface $container)
11+
{
12+
$data = $container->get('config');
13+
14+
return new ConfigCollector($data, 'Config');
15+
}
16+
}

0 commit comments

Comments
 (0)