Skip to content

Commit 37a66ee

Browse files
committed
Updated readme file
1 parent 6a815ec commit 37a66ee

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Symfony Bridge for Jaeger library
22

33
## Getting started
4-
Add this line to your services.yml file
4+
Register JaegerBundle like any other bundle for Symfony 4
55
```
6-
imports:
7-
- { resource: '../../vendor/code-tool/jaeger-client-symfony-bridge/src/Resources/config/services.yml' }
6+
bundles.php
7+
[
8+
...
9+
\Jaeger\Symfony\JaegerBundle::class => ['all' => true],
10+
...
11+
]
812
```
9-
and register this compiler pass in your Kernel
10-
```$xslt
11-
Kernel::build
12-
/**
13-
* @inheritDoc
14-
*/
15-
protected function build(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
13+
OR for Symfony >=2
14+
```
15+
public function registerBundles()
1616
{
17-
parent::build($container);
18-
$container
19-
->addCompilerPass(
20-
new \Jaeger\Symfony\Resources\DependencyInjection\CodecRegistryCompilerPass()
21-
);
17+
$bundles = [
18+
...
19+
new \Jaeger\Symfony\JaegerBundle(),
20+
...
21+
]
2222
}
2323
```
24-
## Proper bundle/plugin files are coming soon

0 commit comments

Comments
 (0)