vendor/sentry/sentry-symfony/src/SentryBundle.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sentry\SentryBundle;
  4. use Sentry\SentryBundle\DependencyInjection\Compiler\AddLoginListenerTagPass;
  5. use Sentry\SentryBundle\DependencyInjection\Compiler\BufferFlushPass;
  6. use Sentry\SentryBundle\DependencyInjection\Compiler\CacheTracingPass;
  7. use Sentry\SentryBundle\DependencyInjection\Compiler\DbalTracingPass;
  8. use Sentry\SentryBundle\DependencyInjection\Compiler\HttpClientTracingPass;
  9. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. final class SentryBundle extends Bundle
  13. {
  14.     public const SDK_IDENTIFIER 'sentry.php.symfony';
  15.     public const SDK_VERSION '5.6.0';
  16.     public function build(ContainerBuilder $container): void
  17.     {
  18.         parent::build($container);
  19.         $container->addCompilerPass(new DbalTracingPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION10);
  20.         $container->addCompilerPass(new CacheTracingPass());
  21.         $container->addCompilerPass(new HttpClientTracingPass());
  22.         $container->addCompilerPass(new AddLoginListenerTagPass());
  23.         $container->addCompilerPass(new BufferFlushPass());
  24.     }
  25. }