Description
Preconditions (*)
- Magento 2.3.1
- PHP 7.2.15
Steps to reproduce (*)
- Install Magento 2.3.1 using composer
- Look at the file
vendor/magento/module-wishlist/composer.json
Expected result (*)
- Not seeing
magento/module-captcha
in there - The Wishlist module should be able to work when the captcha module isn't installed
Actual result (*)
- Seeing
magento/module-captcha
in there - Not sure the wishlist module works without captcha installed, not tested yet.
Discussion
This dependency got introduced in Magento 2.3.1 in d8eacad#diff-649e244f0c6d1bd88471ebeee385eb6e
We don't want this hard dependency, because we don't want to install the default Captcha module of Magento, we have our own module for that and we don't need two modules providing similar functionality.
Until now, it looks like only the sendfriend module had a hard dependency on the captcha module (this is probably incorrect as well). We don't need the sendfriend module either, so we also don't install that, which allowed us to remove the captcha module as well.
But we do need the wishlist module so we can no longer remove the captcha module.
I'm not sure if this hard dependency can be removed somehow, it probably won't be that easy?
Maybe the coupling between captcha & wishlist should have been done in a new module instead of adding it to the existing wishlist module?