6
6
7
7
use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
8
8
use Jean85 \PrettyVersions ;
9
- use LogicException ;
10
9
use Psr \Log \NullLogger ;
11
10
use Sentry \Client ;
12
11
use Sentry \ClientBuilder ;
@@ -203,7 +202,7 @@ private function registerDbalTracingConfiguration(ContainerBuilder $container, a
203
202
&& $ this ->isConfigEnabled ($ container , $ config ['dbal ' ]);
204
203
205
204
if ($ isConfigEnabled && !class_exists (DoctrineBundle::class)) {
206
- throw new LogicException ('DBAL tracing support cannot be enabled because the doctrine/doctrine-bundle Composer package is not installed. ' );
205
+ throw new \ LogicException ('DBAL tracing support cannot be enabled because the doctrine/doctrine-bundle Composer package is not installed. ' );
207
206
}
208
207
209
208
$ container ->setParameter ('sentry.tracing.dbal.enabled ' , $ isConfigEnabled );
@@ -224,7 +223,7 @@ private function registerTwigTracingConfiguration(ContainerBuilder $container, a
224
223
&& $ this ->isConfigEnabled ($ container , $ config ['twig ' ]);
225
224
226
225
if ($ isConfigEnabled && !class_exists (TwigBundle::class)) {
227
- throw new LogicException ('Twig tracing support cannot be enabled because the symfony/twig-bundle Composer package is not installed. ' );
226
+ throw new \ LogicException ('Twig tracing support cannot be enabled because the symfony/twig-bundle Composer package is not installed. ' );
228
227
}
229
228
230
229
if (!$ isConfigEnabled ) {
@@ -241,7 +240,7 @@ private function registerCacheTracingConfiguration(ContainerBuilder $container,
241
240
&& $ this ->isConfigEnabled ($ container , $ config ['cache ' ]);
242
241
243
242
if ($ isConfigEnabled && !class_exists (CacheItem::class)) {
244
- throw new LogicException ('Cache tracing support cannot be enabled because the symfony/cache Composer package is not installed. ' );
243
+ throw new \ LogicException ('Cache tracing support cannot be enabled because the symfony/cache Composer package is not installed. ' );
245
244
}
246
245
247
246
$ container ->setParameter ('sentry.tracing.cache.enabled ' , $ isConfigEnabled );
0 commit comments