8000 [HttpKernel] use ConfigCache::getPath() method when it exists · symfony/symfony@ab70632 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab70632

Browse files
committed
[HttpKernel] use ConfigCache::getPath() method when it exists
This way, the deprecated `__toString()` method of the `ConfigCache` class will not be called.
1 parent daf4a03 commit ab70632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
695695
$dumper = new PhpDumper($container);
696696

697697
if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper')) {
698-
$dumper->setProxyDumper(new ProxyDumper(md5((string) $cache)));
698+
$dumper->setProxyDumper(new ProxyDumper(md5($cache->getPath())));
699699
}
700700

701701
$content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath()));

0 commit comments

Comments
 (0)
0