Skip to content

Commit d62f6af

Browse files
[DI] leverage Contracts\Service
1 parent 467cf92 commit d62f6af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
5151
use Symfony\Component\DependencyInjection\Reference;
5252
use Symfony\Component\DependencyInjection\ServiceLocator;
53-
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
5453
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
5554
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
5655
use Symfony\Component\Finder\Finder;
@@ -102,6 +101,7 @@
102101
use Symfony\Component\Yaml\Command\LintCommand as BaseYamlLintCommand;
103102
use Symfony\Component\Yaml\Yaml;
104103
use Symfony\Contracts\Service\ResetInterface;
104+
use Symfony\Contracts\Service\ServiceSubscriberInterface;
105105

106106
/**
107107
* FrameworkExtension.

Test/KernelTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\DependencyInjection\ContainerInterface;
16-
use Symfony\Component\DependencyInjection\ResettableContainerInterface;
1716
use Symfony\Component\HttpKernel\KernelInterface;
17+
use Symfony\Contracts\Service\ResetInterface;
1818

1919
/**
2020
* KernelTestCase is the base class for tests needing a Kernel.
@@ -119,7 +119,7 @@ protected static function ensureKernelShutdown()
119119
if (null !== static::$kernel) {
120120
$container = static::$kernel->getContainer();
121121
static::$kernel->shutdown();
122-
if ($container instanceof ResettableContainerInterface) {
122+
if ($container instanceof ResetInterface) {
123123
$container->reset();
124124
}
125125
}

0 commit comments

Comments
 (0)