File tree Expand file tree Collapse file tree 1 file changed +15
-19
lines changed Expand file tree Collapse file tree 1 file changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -92,34 +92,30 @@ use Symfony\Component\Console\Helper\ProgressBar;
92
92
require_once $ autoloaderInWorkingDirectory ;
93
93
}
94
94
95
- $ autoloadProjectAutoloaderFile = function (string $ file ) use (&$ composerAutoloaderProjectPaths ): void {
96
- $ path = dirname (__DIR__ ) . $ file ;
97
- if (!extension_loaded ('phar ' )) {
95
+ $ path = dirname (__DIR__ , 3 ) . '/autoload.php ' ;
96
+ if (!extension_loaded ('phar ' )) {
97
+ if (@is_file ($ path )) {
98
+ $ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
99
+
100
+ require_once $ path ;
101
+ }
102
+ } else {
103
+ $ pharPath = \Phar::running (false );
104
+ if ($ pharPath === '' ) {
98
105
if (@is_file ($ path )) {
99
106
$ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
100
107
101
108
require_once $ path ;
102
109
}
103
110
} else {
104
- $ pharPath = \Phar::running (false );
105
- if ($ pharPath === '' ) {
106
- if (@is_file ($ path )) {
107
- $ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
108
-
109
- require_once $ path ;
110
- }
111
- } else {
112
- $ path = dirname ($ pharPath ) . $ file ;
113
- if (@is_file ($ path )) {
114
- $ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
111
+ $ path = dirname ($ pharPath , 3 ) . '/autoload.php ' ;
112
+ if (@is_file ($ path )) {
113
+ $ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
115
114
116
- require_once $ path ;
117
- }
115
+ require_once $ path ;
118
116
}
119
117
}
120
- };
121
-
122
- $ autoloadProjectAutoloaderFile ('/../../autoload.php ' );
118
+ }
123
119
124
120
/** @var array<callable>|false $autoloadFunctionsAfter */
125
121
$ autoloadFunctionsAfter = spl_autoload_functions ();
You can’t perform that action at this time.
0 commit comments