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()
398398 if (!$ proxyDumper ->isProxyCandidate ($ definition )) {
399399 continue ;
400400 }
401+ // register class' reflector for resource tracking
402+ $ this ->container ->getReflectionClass ($ definition ->getClass ());
401403 $ proxyCode = "\n" .$ proxyDumper ->getProxyCode ($ definition );
402404 if ($ strip ) {
403405 $ proxyCode = "<?php \n" .$ proxyCode ;
@@ -1043,10 +1045,10 @@ protected function load(\$file, \$lazyLoad = true)
10431045 }
10441046 $ code .= <<<EOF
10451047
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+ }
10501052
10511053EOF ;
10521054 break ;
You can’t perform that action at this time.
0 commit comments