File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Symfony/Component/DependencyInjection/Dumper Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \DependencyInjection \Dumper ;
13
13
14
14
use Composer \Autoload \ClassLoader ;
15
+ use Symfony \Component \Config \Resource \FileResource ;
15
16
use Symfony \Component \DependencyInjection \Argument \AbstractArgument ;
16
17
use Symfony \Component \DependencyInjection \Argument \ArgumentInterface ;
17
18
use Symfony \Component \DependencyInjection \Argument \IteratorArgument ;
@@ -555,8 +556,12 @@ private function generateProxyClasses(): array
555
556
continue ;
556
557
}
557
558
$ alreadyGenerated [$ asGhostObject ][$ class ] = true ;
558
- // register class' reflector for resource tracking
559
- $ this ->container ->getReflectionClass ($ class );
559
+
560
+ $ r = $ this ->container ->getReflectionClass ($ class );
561
+ do {
562
+ $ this ->container ->addResource (new FileResource ($ r ->getFileName ()));
563
+ } while ($ r = $ r ->getParentClass ());
564
+
560
565
if ("\n" === $ proxyCode = "\n" .$ proxyDumper ->getProxyCode ($ definition , $ id )) {
561
566
continue ;
562
567
}
You can’t perform that action at this time.
0 commit comments