/doctrine-jaeger-symfony-bridge

Symfony bridge Doctrine DBAL jaeger library

Primary LanguagePHPMIT LicenseMIT

Symfony Bridge for Doсtrine Jaeger library

Getting started

Register bundle with your kernel:

// config/bundles.php
return [
    // ...
    \Doctrine\DBAL\Jaeger\Symfony\DependencyInjection\JaegerDbalBundle::class => ['all' => true],
    // ...
];

OR

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \Doctrine\DBAL\Jaeger\Symfony\DependencyInjection\JaegerDbalBundle(),
        ];

        // ...
    }
}

Add wrapper class definition in doctrine configuration

doctrine:
  dbal:
    connections:
      %connection_name%:
        ...
        wrapper_class: 'Doctrine\DBAL\Jaeger\Wrapper\JaegerConnectionWrapper'
        ...