File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,8 @@ private function generateProxyClasses()
398
398
if (!$ proxyDumper ->isProxyCandidate ($ definition )) {
399
399
continue ;
400
400
}
401
+ // register class' reflector for resource tracking
402
+ $ this ->container ->getReflectionClass ($ definition ->getClass ());
401
403
$ proxyCode = "\n" .$ proxyDumper ->getProxyCode ($ definition );
402
404
if ($ strip ) {
403
405
$ proxyCode = "<?php \n" .$ proxyCode ;
@@ -1043,10 +1045,10 @@ protected function load(\$file, \$lazyLoad = true)
1043
1045
}
1044
1046
$ code .= <<<EOF
1045
1047
1046
- protected function createProxy( \$class, \Closure \$factory)
1047
- {
1048
- {$ proxyLoader }return \$factory();
1049
- }
1048
+ protected function createProxy( \$class, \Closure \$factory)
1049
+ {
1050
+ {$ proxyLoader }return \$factory();
1051
+ }
1050
1052
1051
1053
EOF ;
1052
1054
break ;
You can’t perform that action at this time.
0 commit comments