mirror of
https://github.com/bdnugget/n98-magerun2.git
synced 2026-11-07 08:57:30 +00:00
Possible fix for static file autoloading issue with Guzzle and
php-scoper See: https://github.com/humbug/php-scoper/issues/298
This commit is contained in:
1 parent
c75ff4b700
commit
e76c540309
2 files changed
+8
-12
No files matched your search
@@ -1,12 +0,0 @@
|
||||
--- a/vendor/composer/ClassLoader.php
|
||||
+++ b/vendor/composer/ClassLoader.php
|
||||
@@ -426,6 +426,9 @@ class ClassLoader
|
||||
}
|
||||
|
||||
// PSR-0 include paths.
|
||||
+ if (!in_array('phar', \stream_get_wrappers(), true)) {
|
||||
+ \stream_wrapper_restore('phar');
|
||||
+ }
|
||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
@@ -28,6 +28,14 @@ class MagerunBootstrap
|
||||
$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;
|
||||
|
||||
Reference in new issue
Block a user