Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c339649

Browse filesBrowse 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
Copy full SHA for c339649

File tree

2 files changed

+7
-0
lines changed
Filter options

2 files changed

+7
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
+5Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/services.php
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.