-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathview_cache.yml
More file actions
50 lines (43 loc) · 2.2 KB
/
Copy pathview_cache.yml
File metadata and controls
50 lines (43 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
ezplatform.view_cache.response_subscriber:
class: EzSystems\PlatformHttpCacheBundle\EventSubscriber\HttpCacheResponseSubscriber
arguments:
- '@ezplatform.view_cache.response_configurator'
- '@ezplatform.view_cache.response_tagger.dispatcher'
tags:
- { name: kernel.event_subscriber }
ezplatform.x_location_id.response_subscriber:
class: EzSystems\PlatformHttpCacheBundle\EventSubscriber\XLocationIdResponseSubscriber
arguments: ['@ezplatform.http_cache.tag_handler', '@ezpublish.api.repository']
tags:
- { name: kernel.event_subscriber }
ezplatform.view_cache.response_configurator:
class: EzSystems\PlatformHttpCacheBundle\ResponseConfigurator\ConfigurableResponseCacheConfigurator
arguments:
- '$content.view_cache$'
- '$content.ttl_cache$'
- '$content.default_ttl$'
- '@ezplatform.http_cache.tag_handler'
ezplatform.view_cache.response_tagger.dispatcher:
class: EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\DispatcherTagger
# Taggers are added by a compiler pass
arguments:
- []
ezplatform.view_cache.response_tagger.content_value_view:
class: EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\ContentValueViewTagger
arguments: ['@ezplatform.view_cache.response_tagger.content_info']
tags:
- {name: ezplatform.cache_response_tagger}
ezplatform.view_cache.response_tagger.location_value_view:
class: EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\LocationValueViewTagger
arguments: ['@ezplatform.view_cache.response_tagger.location']
tags:
- {name: ezplatform.cache_response_tagger}
ezplatform.view_cache.response_tagger.content_info:
class: EzSystems\PlatformHttpCacheBundle\ResponseTagger\Value\ContentInfoTagger
tags:
- {name: ezplatform.cache_response_tagger}
ezplatform.view_cache.response_tagger.location:
class: EzSystems\PlatformHttpCacheBundle\ResponseTagger\Value\LocationTagger
tags:
- {name: ezplatform.cache_response_tagger}