File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Symfony/Bundle/DependencyInjection Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ private function registerCacheConfiguration(ContainerBuilder $container): void
649
649
@trigger_error ('The "api_platform.metadata_cache" parameter is deprecated since version 2.4 and will have no effect in 3.0. ' , \E_USER_DEPRECATED );
650
650
651
651
// BC
652
- if (!$ container ->getParameter ('api_platform.metadata_cache ' )) {
652
+ if (!$ container ->getParameter ('api_platform.metadata_cache ' ) && $ container -> hasParameter ( ' kernel.debug ' ) && $ container -> getParameter ( ' kernel.debug ' ) ) {
653
653
$ container ->removeDefinition ('api_platform.cache_warmer.cache_pool_clearer ' );
654
654
655
655
$ container ->register ('api_platform.cache.metadata.property ' , ArrayAdapter::class);
You can’t perform that action at this time.
0 commit comments