[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:
Christian Flothmann 2015-05-11 18:34:30 +02:00
parent daf4a03e5d
commit ab70632a2e

View File

@ -695,7 +695,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
$dumper = new PhpDumper($container);
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()));