8000 minor #14610 [HttpKernel] use ConfigCache::getPath() method when it e… · symfony/symfony@bdcce21 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdcce21

Browse files
committed
minor #14610 [HttpKernel] use ConfigCache::getPath() method when it exists (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpKernel] use ConfigCache::getPath() method when it exists | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This way, the deprecated `__toString()` method of the `ConfigCache` class will not be called. Commits ------- ab70632 [HttpKernel] use ConfigCache::getPath() method when it exists
2 parents daf4a03 + ab70632 commit bdcce21

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