File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 12
12
(new class () {
13
13
public function main ()
14
14
{
15
- require_once $ _composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php ' ;
15
+ if (isset ($ GLOBALS ['_composer_autoload_path ' ])) {
16
+ define ('COMPOSER_INSTALL_PATH ' , $ GLOBALS ['_composer_autoload_path ' ]);
17
+
18
+ unset($ GLOBALS ['_composer_autoload_path ' ]);
19
+ } else {
20
+ foreach ([__DIR__ . '/../../autoload.php ' , __DIR__ . '/../vendor/autoload.php ' , __DIR__ . '/vendor/autoload.php ' ] as $ file ) {
21
+ if (file_exists ($ file )) {
22
+ define ('COMPOSER_INSTALL_PATH ' , $ file );
23
+
24
+ break ;
25
+ }
26
+ }
27
+
28
+ unset($ file );
29
+ }
30
+
31
+ require COMPOSER_INSTALL_PATH ;
16
32
17
33
$ configValues = (new \Artemeon \M2G \Config \ConfigReader ())->read ();
18
34
$ githubConnector = new \Artemeon \M2G \Service \GithubConnector ($ configValues );
You can’t perform that action at this time.
0 commit comments