Replies: 1 comment 2 replies
-
|
Hey @acelaya, just wondering what kind of error you're seeing in this case.. when an invokable command is defined without extending since 7.4, you can also get the invokable command class using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been lately using invokable commands in my
symfony/consoleapplications, and it works great. It's a very good approach, and I plan to bet further on this once Symfony 7.4 is released.The only limitation I have found so far is that I'm using the
ContainerCommandLoaderto dynamically load my commands from a container, but since thegetmethod has aCommandreturn type, I need to make my invokable commands extend fromCommandeven if I'm not using any of its methods.I wanted to know if there are any plans to provide alternative ways to lazy-load commands without having to extend
Command.Beta Was this translation helpful? Give feedback.
All reactions