5
5
namespace Sentry \SentryBundle \DependencyInjection ;
6
6
7
7
use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
8
- use LogicException ;
9
8
use Psr \Log \NullLogger ;
10
9
use Sentry \Client ;
11
10
use Sentry \ClientBuilder ;
@@ -204,7 +203,7 @@ private function registerDbalTracingConfiguration(ContainerBuilder $container, a
204
203
&& $ this ->isConfigEnabled ($ container , $ config ['dbal ' ]);
205
204
206
205
if ($ isConfigEnabled && !class_exists (DoctrineBundle::class)) {
207
- throw new LogicException ('DBAL tracing support cannot be enabled because the doctrine/doctrine-bundle Composer package is not installed. ' );
206
+ throw new \ LogicException ('DBAL tracing support cannot be enabled because the doctrine/doctrine-bundle Composer package is not installed. ' );
208
207
}
209
208
210
209
$ container ->setParameter ('sentry.tracing.dbal.enabled ' , $ isConfigEnabled );
@@ -225,7 +224,7 @@ private function registerTwigTracingConfiguration(ContainerBuilder $container, a
225
224
&& $ this ->isConfigEnabled ($ container , $ config ['twig ' ]);
226
225
227
226
if ($ isConfigEnabled && !class_exists (TwigBundle::class)) {
228
- throw new LogicException ('Twig tracing support cannot be enabled because the symfony/twig-bundle Composer package is not installed. ' );
227
+ throw new \ LogicException ('Twig tracing support cannot be enabled because the symfony/twig-bundle Composer package is not installed. ' );
229
228
}
230
229
231
230
if (!$ isConfigEnabled ) {
@@ -242,7 +241,7 @@ private function registerCacheTracingConfiguration(ContainerBuilder $container,
242
241
&& $ this ->isConfigEnabled ($ container , $ config ['cache ' ]);
243
242
244
243
if ($ isConfigEnabled && !class_exists (CacheItem::class)) {
245
- throw new LogicException ('Cache tracing support cannot be enabled because the symfony/cache Composer package is not installed. ' );
244
+ throw new \ LogicException ('Cache tracing support cannot be enabled because the symfony/cache Composer package is not installed. ' );
246
245
}
247
246
248
247
$ container ->setParameter ('sentry.tracing.cache.enabled ' , $ isConfigEnabled );
@@ -257,7 +256,7 @@ private function registerHttpClientTracingConfiguration(ContainerBuilder $contai
257
256
&& $ this ->isConfigEnabled ($ container , $ config ['http_client ' ]);
258
257
259
258
if ($ isConfigEnabled && !class_exists (HttpClient::class)) {
260
- throw new LogicException ('Http client tracing support cannot be enabled because the symfony/http-client Composer package is not installed. ' );
259
+ throw new \ LogicException ('Http client tracing support cannot be enabled because the symfony/http-client Composer package is not installed. ' );
261
260
}
262
261
263
262
$ container ->setParameter ('sentry.tracing.http_client.enabled ' , $ isConfigEnabled );
0 commit comments