You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidConfigurationException('Only configure "generate_url_type" and do not set the deprecated "cache_manager.generate_url_type" option');
205
+
})
206
+
->end()
197
207
;
198
208
209
+
$rootNode
210
+
->children()
211
+
->enumNode('generate_url_type')
212
+
->values([
213
+
'auto',
214
+
UrlGeneratorInterface::ABSOLUTE_PATH,
215
+
UrlGeneratorInterface::ABSOLUTE_URL,
216
+
UrlGeneratorInterface::NETWORK_PATH,
217
+
UrlGeneratorInterface::RELATIVE_PATH,
218
+
])
219
+
// TODO NEXT MAJOR: remove the cache_manager.generate_url_type and enable this as default
220
+
// ->defaultValue('auto')
221
+
->info('Set what URLs to generate on CacheManager::invalidate/refresh and InvalidationListener. Auto tries to guess the right mode based on your proxy client.')
222
+
->end()
223
+
->end()
224
+
;
199
225
$this->addCacheableResponseSection($rootNode);
200
226
$this->addCacheControlSection($rootNode);
201
227
$this->addProxyClientSection($rootNode);
@@ -759,6 +785,7 @@ private function addCacheManagerSection(ArrayNodeDefinition $rootNode): void
759
785
->cannotBeEmpty()
760
786
->end()
761
787
->enumNode('generate_url_type')
788
+
->setDeprecated('friends-of-symfony/http-cache-bundle', '3.4', 'Configure the url type on top level to also have it apply to the InvalidationListener in addition to the CacheManager')
762
789
->values([
763
790
'auto',
764
791
UrlGeneratorInterface::ABSOLUTE_PATH,
@@ -767,7 +794,7 @@ private function addCacheManagerSection(ArrayNodeDefinition $rootNode): void
767
794
UrlGeneratorInterface::RELATIVE_PATH,
768
795
])
769
796
->defaultValue('auto')
770
-
->info('Set what URLs to generate on invalidate/refresh Route. Auto means path if base_url is set on the default proxy client, full URL otherwise.')
797
+
->info('Set what URLs to generate on invalidate/refresh Route. Auto tries to guess the right mode based on your proxy client.')
0 commit comments