Skip to content

Commit cdce94d

Browse files
[7.0] Cleanup legacy code paths
1 parent ea73eee commit cdce94d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Tests/ServiceLocatorTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
1919
use Symfony\Component\DependencyInjection\ServiceLocator;
2020
use Symfony\Contracts\Service\ServiceSubscriberInterface;
21-
use Symfony\Contracts\Service\Test\ServiceLocatorTest as LegacyServiceLocatorTestCase;
2221
use Symfony\Contracts\Service\Test\ServiceLocatorTestCase;
2322

24-
if (!class_exists(ServiceLocatorTestCase::class)) {
25-
class_alias(LegacyServiceLocatorTestCase::class, ServiceLocatorTestCase::class);
26-
}
27-
2823
class ServiceLocatorTest extends ServiceLocatorTestCase
2924
{
3025
public function getServiceLocator(array $factories): ContainerInterface

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=8.2",
2020
"psr/container": "^1.1|^2.0",
2121
"symfony/deprecation-contracts": "^2.5|^3",
22-
"symfony/service-contracts": "^2.5|^3.0",
22+
"symfony/service-contracts": "^3.3",
2323
"symfony/var-exporter": "^6.4|^7.0"
2424
},
2525
"require-dev": {

0 commit comments

Comments
 (0)