File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 18
18
use Symfony \Component \DependencyInjection \Exception \ServiceNotFoundException ;
19
19
use Symfony \Component \DependencyInjection \ServiceLocator ;
20
20
use Symfony \Contracts \Service \ServiceSubscriberInterface ;
21
- use Symfony \Contracts \Service \Test \ServiceLocatorTest as BaseServiceLocatorTest ;
21
+ use Symfony \Contracts \Service \Test \ServiceLocatorTest as LegacyServiceLocatorTestCase ;
22
+ use Symfony \Contracts \Service \Test \ServiceLocatorTestCase ;
22
23
23
- class ServiceLocatorTest extends BaseServiceLocatorTest
24
+ if (!class_exists (ServiceLocatorTestCase::class)) {
25
+ class_alias (LegacyServiceLocatorTestCase::class, ServiceLocatorTestCase::class);
26
+ }
27
+
28
+ class ServiceLocatorTest extends ServiceLocatorTestCase
24
29
{
25
30
public function getServiceLocator (array $ factories ): ContainerInterface
26
31
{
You can’t perform that action at this time.
0 commit comments