Skip to content

Commit

Permalink
[HttpKernel] use ConfigCache::getPath() method when it exists
Browse files Browse the repository at this point in the history
This way, the deprecated `__toString()` method of the `ConfigCache`
class will not be called.
  • Loading branch information
xabbuh committed May 11, 2015
1 parent daf4a03 commit ab70632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Expand Up @@ -695,7 +695,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
$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()));
Expand Down

0 comments on commit ab70632

Please sign in to comment.