Skip to content

Commit 42d52f4

Browse files
committed
replace xml config with php
1 parent a8e3a3a commit 42d52f4

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

src/DependencyInjection/SentryExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public function getNamespace(): string
6262
*/
6363
protected function loadInternal(array $mergedConfig, ContainerBuilder $container): void
6464
{
65-
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
66-
$loader->load('services.xml');
65+
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
66+
$loader->load('services.php');
6767

6868
if (!$container->hasParameter('env(SENTRY_RELEASE)')) {
6969
$container->setParameter('env(SENTRY_RELEASE)', PrettyVersions::getRootPackageVersion()->getPrettyVersion());
@@ -298,7 +298,7 @@ private function registerHttpClientTracingConfiguration(ContainerBuilder $contai
298298
}
299299

300300
/**
301-
* @param string[] $integrations
301+
* @param string[] $integrations
302302
* @param array<string, mixed> $config
303303
*
304304
* @return array<Reference|Definition>
@@ -330,12 +330,12 @@ private function configureRequestIntegration(array $integrations, bool $useDefau
330330

331331
/**
332332
* @param class-string<IntegrationInterface> $integrationClass
333-
* @param array<Reference|Definition> $integrations
333+
* @param array<Reference|Definition> $integrations
334334
*/
335335
private function isIntegrationEnabled(string $integrationClass, array $integrations): bool
336336
{
337337
foreach ($integrations as $integration) {
338-
if ($integration instanceof Reference && $integrationClass === (string) $integration) {
338+
if ($integration instanceof Reference && $integrationClass === (string)$integration) {
339339
return true;
340340
}
341341

tests/DependencyInjection/XmlSentryExtensionTest.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)