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
This commit is contained in:
commit
bdcce2193b
@ -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()));
|
||||
|
Reference in New Issue
Block a user