Skip to content

Commit 1a40f71

Browse files
committed
Add symfony extension
1 parent 5cd34df commit 1a40f71

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Jaeger\Symfony\Resources\DependencyInjection;
4+
5+
use Symfony\Component\Config\FileLocator;
6+
use Symfony\Component\DependencyInjection\ContainerBuilder;
7+
use Symfony\Component\DependencyInjection\Extension\Extension;
8+
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9+
10+
class JaegerExtension extends Extension
11+
{
12+
public function load(array $configs, ContainerBuilder $container)
13+
{
14+
$loader = new YamlFileLoader(
15+
$container,
16+
new FileLocator(__DIR__ . '/../config')
17+
);
18+
$loader->load('services.yml');
19+
}
20+
}

0 commit comments

Comments
 (0)