From ab70632a2eae114a00330e1e19585910dba3e9c7 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 11 May 2015 18:34:30 +0200 Subject: [PATCH] [HttpKernel] use ConfigCache::getPath() method when it exists This way, the deprecated `__toString()` method of the `ConfigCache` class will not be called. --- src/Symfony/Component/HttpKernel/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index f07137641f..27beac75f7 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -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()));