File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Runtime/Internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function updateAutoloadFile(): void
74
74
}
75
75
}
76
76
77
- $ projectDir = $ fs ->makePathRelative ($ projectDir , $ vendorDir );
77
+ $ projectDir = $ fs ->makePathRelative (realpath ( $ projectDir. $ extra [ ' project_dir ' ] ?? '' ) , $ vendorDir );
78
78
$ nestingLevel = 0 ;
79
79
80
80
while (str_starts_with ($ projectDir , '../ ' )) {
@@ -90,7 +90,7 @@ public function updateAutoloadFile(): void
90
90
91
91
$ runtimeClass = $ extra ['class ' ] ?? SymfonyRuntime::class;
92
92
93
- unset($ extra ['class ' ], $ extra ['autoload_template ' ]);
93
+ unset($ extra ['class ' ], $ extra ['autoload_template ' ], $ extra [ ' project_dir ' ] );
94
94
95
95
$ code = strtr (file_get_contents ($ autoloadTemplate ), [
96
96
'%project_dir% ' => $ projectDir ,
You can’t perform that action at this time.
0 commit comments