-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commands are not listed by bin/magento for M2.4.1 #40
Comments
Do you know if using the interface is backwards compatible to earlier Magento versions? @shochdoerfer |
The mentioned README.md file was last changed in April 2016 so I would assume the interface is available for quite a while now. The first commit for I could not really track a PR that changed the behaviour, at least no PR that explicitly states the change. The closest one seems this magento/magento2#29762 |
@shochdoerfer Happy to merge a PR for this if it's backwards compatible. Otherwise I'd set up separate release branches. |
@therouv sure, need to investigate. The issue was rather opened to see if I am doing something wrong or if other people ran in the same situation :) |
@shochdoerfer I've changed it accordingly since Magento has a static test which discourages this behavior (see here). However, I've tested with all 2.4 versions and the commands were always displayed without any issues: |
Awesome! Thanks. Sorry, lost track of this issue ;( |
General
Issue description
I created a new Magento 2.4.1 project and installed the
semaio/magento2-configimportexport
package afterward as described in the README file. When invokingbin/magento
the commands exposed by the module are not listed and I cannot invoke them.I could track things down to this:
Currently, the module is registering the commands with type
Magento\Framework\Console\CommandList
. When changing the type toMagento\Framework\Console\CommandListInterface
the commands appear when invokingbin/magento
.This is also mentioned in the README file of the Console package: https://github.com/magento/magento2/blob/2.4-develop/lib/internal/Magento/Framework/Console/README.md
Happy to provide a PR if changing the type makes sense for you.
The text was updated successfully, but these errors were encountered: