File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ CHANGELOG
99 * Add automatic detection of FrankenPHP worker mode in ` SymfonyRuntime `
1010 * Expose the runtime class in ` $_SERVER['APP_RUNTIME'] `
1111 * Expose the runtime options in ` $_SERVER['APP_RUNTIME_OPTIONS'] `
12+ * Make ` project_dir ` configurable in ` composer.json `
1213
13146.4
1415---
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 , '../ ' )) {
@@ -91,7 +91,7 @@ public function updateAutoloadFile(): void
9191
9292 $ runtimeClass = $ extra ['class ' ] ?? SymfonyRuntime::class;
9393
94- unset($ extra ['class ' ], $ extra ['autoload_template ' ]);
94+ unset($ extra ['class ' ], $ extra ['autoload_template ' ], $ extra [ ' project_dir ' ] );
9595
9696 $ code = strtr (file_get_contents ($ autoloadTemplate ), [
9797 '%project_dir% ' => $ projectDir ,
You can’t perform that action at this time.
0 commit comments