File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Symfony Bridge for Jaeger library
2
2
3
3
## Getting started
4
- Add this line to your services.yml file
4
+ Register JaegerBundle like any other bundle for Symfony 4
5
5
```
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
+ ]
8
12
```
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()
16
16
{
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
+ ]
22
22
}
23
23
```
24
- ## Proper bundle/plugin files are coming soon
You can’t perform that action at this time.
0 commit comments