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 a97f8b7

Browse filesBrowse files
committed
feature #25710 [FrameworkBundle] add cache.app.simple psr simple cache (dmaicher)
This PR was squashed before being merged into the 4.1-dev branch (closes #25710). Discussion ---------- [FrameworkBundle] add cache.app.simple psr simple cache | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25708 | License | MIT | Doc PR | TODO? This adds a PSR SimpleCache version of the `cache.app` service. Should I also update the documentation somewhere? 😊 Commits ------- 1b6ec8b [FrameworkBundle] add cache.app.simple psr simple cache
2 parents 445ce1d + 1b6ec8b commit a97f8b7
Copy full SHA for a97f8b7

File tree

1 file changed

+5
-0
lines changed
Filter options
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+5
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/cache.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/cache.xml
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<tag name="cache.pool" clearer="cache.app_clearer" reset="reset" />
1212
</service>
1313

14+
<service id="cache.app.simple" class="Symfony\Component\Cache\Simple\Psr6Cache">
15+
<argument type="service" id="cache.app" />
16+
</service>
17+
1418
<service id="cache.system" parent="cache.adapter.system" public="true">
1519
<tag name="cache.pool" />
1620
</service>
@@ -109,6 +113,7 @@
109113
<service id="cache.global_clearer" parent="cache.default_clearer" public="true" />
110114
<service id="cache.app_clearer" alias="cache.default_clearer" public="true" />
111115
<service id="Psr\Cache\CacheItemPoolInterface" alias="cache.app" />
116+
<service id="Psr\SimpleCache\CacheInterface" alias="cache.app.simple" />
112117
<service id="Symfony\Component\Cache\Adapter\AdapterInterface" alias="cache.app" />
113118
</services>
114119
</container>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.