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
7474 }
7575 }
7676
77- $ projectDir = $ fs ->makePathRelative ($ projectDir , $ vendorDir );
77+ $ projectDir = $ fs ->makePathRelative (realpath ( $ projectDir.( $ extra [ ' project_dir ' ] ?? '' )) , $ vendorDir );
7878 $ nestingLevel = 0 ;
7979
8080 while (str_starts_with ($ projectDir , '../ ' )) {
@@ -90,7 +90,7 @@ public function updateAutoloadFile(): void
9090
9191 $ runtimeClass = $ extra ['class ' ] ?? SymfonyRuntime::class;
9292
93- unset($ extra ['class ' ], $ extra ['autoload_template ' ]);
93+ unset($ extra ['class ' ], $ extra ['autoload_template ' ], $ extra [ ' project_dir ' ] );
9494
9595 $ code = strtr (file_get_contents ($ autoloadTemplate ), [
9696 '%project_dir% ' => $ projectDir ,
You can’t perform that action at this time.
0 commit comments