Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c339649

Browse files
committed
feature #41203 [FrameworkBundle] Add autowiring alias for HttpCache\StoreInterface (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Add autowiring alias for `HttpCache\StoreInterface` | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Will be useful for eg [the-fast-track](https://symfony.com/doc/current/the-fast-track/en/21-cache.html#purging-the-http-cache-for-testing) book. Commits ------- 3a19253 [FrameworkBundle] Add autowiring alias for `HttpCache\StoreInterface`
2 parents c82d8c9 + 3a19253 commit c339649

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.4
5+
---
6+
7+
* Add autowiring alias for `HttpCache\StoreInterface`
8+
49
5.3
510
---
611

src/Symfony/Bundle/FrameworkBundle/Resources/config/services.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter;
3535
use Symfony\Component\HttpKernel\EventListener\LocaleAwareListener;
3636
use Symfony\Component\HttpKernel\HttpCache\Store;
37+
use Symfony\Component\HttpKernel\HttpCache\StoreInterface;
3738
use Symfony\Component\HttpKernel\HttpKernel;
3839
use Symfony\Component\HttpKernel\HttpKernelInterface;
3940
use Symfony\Component\HttpKernel\KernelEvents;
@@ -104,6 +105,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
104105
->args([
105106
param('kernel.cache_dir').'/http_cache',
106107
])
108+
->alias(StoreInterface::class, 'http_cache.store')
107109

108110
->set('url_helper', UrlHelper::class)
109111
->args([

0 commit comments

Comments
 (0)