Skip to content

Commit

Permalink
Possible fix for static file autoloading issue with Guzzle and
Browse files Browse the repository at this point in the history
php-scoper

See: humbug/php-scoper#298
  • Loading branch information
cmuench committed Jan 3, 2022
1 parent 10ef535 commit efac625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 0 additions & 12 deletions build/phar/patches/composer_autoloader.patch

This file was deleted.

8 changes: 8 additions & 0 deletions src/N98/MagerunBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ public static function createApplication(ClassLoader $loader = null)
$loader = self::getLoader();
}

// @lnk https://github.com/humbug/php-scoper/issues/298
$GLOBALS['__composer_autoload_files'] = [
/* vendor/guzzlehttp/psr7/src/functions_include.php */
'a0edc8309cc5e1d60e3047b5df6b7052' => false,
/* vendor/guzzlehttp/guzzle/src/functions_include.php */
'37a3dc5111fe8f707ab4c132ef1dbc62' => false,
];

$application = new Magento\Application($loader);

return $application;
Expand Down

0 comments on commit efac625

Please sign in to comment.