Skip to content

Commit

Permalink
fix(symfony): don't use ArrayAdapter in production #4975 (#5025)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Sep 29, 2022
1 parent 07afa77 commit 9895e34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ private function registerCacheConfiguration(ContainerBuilder $container): void
@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);

// BC
if (!$container->getParameter('api_platform.metadata_cache')) {
if (!$container->getParameter('api_platform.metadata_cache') && $container->hasParameter('kernel.debug') && $container->getParameter('kernel.debug')) {
$container->removeDefinition('api_platform.cache_warmer.cache_pool_clearer');

$container->register('api_platform.cache.metadata.property', ArrayAdapter::class);
Expand Down

0 comments on commit 9895e34

Please sign in to comment.