zendframework / zend-expressive-skeleton

Begin developing PSR-7 middleware applications in seconds!
BSD 3-Clause "New" or "Revised" License
136 stars 90 forks source link

Uncaught Error: Call to undefined method Zend\ComponentInstaller\Injector\ConfigInjectorChain::getConfigFile() when require followed with unrequire component #198

Closed samsonasik closed 6 years ago

samsonasik commented 6 years ago

step to reproduce:

  1. install zend-expressive 3
composer create-project "zendframework/zend-expressive-skeleton:3.0.x-dev" expressive-3.0-dev
  1. require component
composer require zendframework/zend-expressive-session:^1.0.0-dev

the component installed and updated to config/config.php.

  1. remove the component from composer.json and run :
composer update 

got error :

PHP Fatal error:  Uncaught Error: Call to undefined method Zend\ComponentInstaller\Injector\ConfigInjectorChain::getConfigFile() in /Users/samsonasik/www/expressive-3.0-dev/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php:544
geerteltink commented 6 years ago

I can't reproduce this, but I know I had the same issue before 2 weeks ago. Also for me your require command didn't work. I had to do this:

composer require zendframework/zend-expressive-session:^1.0.x-dev

When using that it did work as expected.

samsonasik commented 6 years ago

the issue happen when after component installed, then open composer.json -> remove component -> run composer update

weierophinney commented 6 years ago

@samsonasik That sounds like an issue with zend-component-installer, then. Can you open an issue there, please?

samsonasik commented 6 years ago

@weierophinney the issue seems already in zend-component-intaller repo https://github.com/zendframework/zend-component-installer/issues/39