diff --git a/build/phar/patches/composer_autoloader.patch b/build/phar/patches/composer_autoloader.patch deleted file mode 100644 index e69bb230b..000000000 --- a/build/phar/patches/composer_autoloader.patch +++ /dev/null @@ -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; - } diff --git a/src/N98/MagerunBootstrap.php b/src/N98/MagerunBootstrap.php index a0b08856d..557291db5 100644 --- a/src/N98/MagerunBootstrap.php +++ b/src/N98/MagerunBootstrap.php @@ -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;