laminas / laminas-cli

Console command runner, exposing commands written in Laminas MVC and Mezzio components and applications
https://docs.laminas.dev/laminas-cli
BSD 3-Clause "New" or "Revised" License
55 stars 22 forks source link

Treat commands not found in container as invokable #33

Closed weierophinney closed 4 years ago

weierophinney commented 4 years ago

Feature Request

Q A
New Feature yes
RFC yes
BC Break no

Summary

If a command does not require a factory, we should treat it as if it were an "invokable". This can be accomplished by calling has() before attempting to pull a command from the container; if that call returns false, we would directly instantiate the command.

weierophinney commented 4 years ago

Closed with #34