Skip to content

Commit 1443d7b

Browse files
author
Robin Chalas
committed
Merge branch '4.0'
* 4.0: [Intl] Fixed the broken link Fix typo Fix typo Fixed issue #25985 Don't show wanna-be-private services as public in debug:container [Routing] Fix trailing slash redirection for non-safe verbs [DI] Fix tracking of source class changes for lazy-proxies Proxy class names should be deterministic and independent of spl_object_hash() which is somewhat random [Debug] Fix bad registration of exception handler, leading to mem leak [Form] Fixed empty data on expanded ChoiceType and FileType collect extension information as late as possible
2 parents c77e1ee + 5535e6f commit 1443d7b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dumper/PhpDumper.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ private function generateProxyClasses()
399399
if (!$proxyDumper->isProxyCandidate($definition)) {
400400
continue;
401401
}
402+
// register class' reflector for resource tracking
403+
$this->container->getReflectionClass($definition->getClass());
402404
$proxyCode = "\n".$proxyDumper->getProxyCode($definition);
403405
if ($strip) {
404406
$proxyCode = "<?php\n".$proxyCode;
@@ -970,10 +972,10 @@ protected function load(\$file, \$lazyLoad = true)
970972
}
971973
$code .= <<<EOF
972974
973-
protected function createProxy(\$class, \Closure \$factory)
974-
{
975-
{$proxyLoader}return \$factory();
976-
}
975+
protected function createProxy(\$class, \Closure \$factory)
976+
{
977+
{$proxyLoader}return \$factory();
978+
}
977979
978980
EOF;
979981
break;

0 commit comments

Comments
 (0)