[HttpKernel] use ConfigCache::getPath() method when it exists
This way, the deprecated `__toString()` method of the `ConfigCache` class will not be called.
This commit is contained in:
parent
daf4a03e5d
commit
ab70632a2e
@ -695,7 +695,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
$dumper = new PhpDumper($container);
|
$dumper = new PhpDumper($container);
|
||||||
|
|
||||||
if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper')) {
|
if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper')) {
|
||||||
$dumper->setProxyDumper(new ProxyDumper(md5((string) $cache)));
|
$dumper->setProxyDumper(new ProxyDumper(md5($cache->getPath())));
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath()));
|
$content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath()));
|
||||||
|
Reference in New Issue
Block a user