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

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\CacheTracingPass;
  6. use Sentry\SentryBundle\DependencyInjection\Compiler\DbalTracingPass;
  7. use Sentry\SentryBundle\DependencyInjection\Compiler\HttpClientTracingPass;
  8. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. final class SentryBundle extends Bundle
  12. {
  13. public const SDK_IDENTIFIER = 'sentry.php.symfony';
  14. public const SDK_VERSION = '4.14.0';
  15. public function build(ContainerBuilder $container): void
  16. {
  17. parent::build($container);
  18. $container->addCompilerPass(new DbalTracingPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);
  19. $container->addCompilerPass(new CacheTracingPass());
  20. $container->addCompilerPass(new HttpClientTracingPass());
  21. $container->addCompilerPass(new AddLoginListenerTagPass());
  22. }
  23. }