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

Skip to content

Commit 3a19253

Browse files
[FrameworkBundle] Add autowiring alias for HttpCache\StoreInterface
1 parent aea15bc commit 3a19253

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)