Skip to content

Commit c65ac2b

Browse files
authored
Merge pull request #25 from MacPaw/feat/resolveDeprecation
Fix deprecation message autowiring alias ContainerInterface
2 parents e69eae5 + d5bfc28 commit c65ac2b

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

src/Resources/config/health_checks.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
http://symfony.com/schema/dic/services/services-1.0.xsd">
66
<services>
77
<defaults autowire="true" autoconfigure="true" public="true" />
8-
9-
<service id="symfony_health_check.doctrine_check" class="SymfonyHealthCheckBundle\Check\DoctrineCheck"/>
10-
<service id="symfony_health_check.environment_check" class="SymfonyHealthCheckBundle\Check\EnvironmentCheck"/>
8+
<service id="symfony_health_check.doctrine_check" class="SymfonyHealthCheckBundle\Check\DoctrineCheck">
9+
<argument type="service" id="service_container"/>
10+
</service>
11+
<service id="symfony_health_check.environment_check" class="SymfonyHealthCheckBundle\Check\EnvironmentCheck">
12+
<argument type="service" id="service_container"/>
13+
</service>
1114
<service id="symfony_health_check.status_up_check" class="SymfonyHealthCheckBundle\Check\StatusUpCheck"/>
1215
</services>
1316
</container>

tests/Integration/DependencyInjection/SymfonyHealthCheckExtensionTest.php

-13
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@ public function testWithEmptyConfig(): void
3030
}
3131
}
3232

33-
public function testNotExistServiceConfig(): void
34-
{
35-
try {
36-
$this->createContainerFromFixture('error_bundle_config');
37-
} catch (Throwable $exception) {
38-
self::assertInstanceOf(ServiceNotFoundException::class, $exception);
39-
self::assertSame(
40-
'You have requested a non-existent service "not_exists.check".',
41-
$exception->getMessage()
42-
);
43-
}
44-
}
45-
4633
public function testWithFullConfig(): void
4734
{
4835
$container = $this->createContainerFromFixture('filled_bundle_config');

0 commit comments

Comments
 (0)