Skip to content

Commit

Permalink
Issue astorm#435 - Unable to find the wrapper "phar"
Browse files Browse the repository at this point in the history
Using the same fix as n98-magerun2 which work perfectly on 2.2.8. I did not test on other versions of Magento

netz98/n98-magerun2@59e0aec#diff-e42fe36d3628b1f8e91a653d64c7ba6d
  • Loading branch information
srenon authored Jun 22, 2019
1 parent cfd14d3 commit 23c8b9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/pulsestorm/magento2/cli/class_list/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function pestle_cli($argv)
// Magento's autoloaders are loaded here
require getBaseMagentoDir() . '/app/bootstrap.php';

if (!in_array('phar', \stream_get_wrappers())) {
\stream_wrapper_restore('phar');
}

registerAutoloaders($pestlesLoaders);
/*
* TODO: wrap this logic in an application container
Expand Down

0 comments on commit 23c8b9f

Please sign in to comment.