Skip to content

Commit 11b2364

Browse files
committed
[FrameworkBundle] Add alias ServicesResetter for services_resetter service
1 parent 719e035 commit 11b2364

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CHANGELOG
1515
* Deprecate the `framework.validation.cache` option
1616
* Add `--method` option to the `debug:router` command
1717
* Auto-exclude DI extensions, test cases, entities and messenger messages
18+
* Add DI alias from `ServicesResetterInterface` to `services_resetter`
1819

1920
7.2
2021
---

Resources/config/services.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate;
4343
use Symfony\Component\HttpKernel\Config\FileLocator;
4444
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter;
45+
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetterInterface;
4546
use Symfony\Component\HttpKernel\EventListener\LocaleAwareListener;
4647
use Symfony\Component\HttpKernel\HttpCache\Store;
4748
use Symfony\Component\HttpKernel\HttpCache\StoreInterface;
@@ -177,6 +178,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
177178

178179
->set('services_resetter', ServicesResetter::class)
179180
->public()
181+
->alias(ServicesResetterInterface::class, 'services_resetter')
180182

181183
->set('reverse_container', ReverseContainer::class)
182184
->args([

0 commit comments

Comments
 (0)