And I would argue it was a poor fit.
The idea was to supposedly allow re-use of a controller in both an
HTTP and a CLI context. What ended up happening is that the request
and response types were essentially incompatible, which ends up with
having completely different logic for marshaling the data from the
request and populating the response. In the end, developers typically
create different controllers for HTTP vs CLI contexts.
Worse: pushing this into the MVC causes a number of disconnects when
learning; it's difficult to remember where to define CLI rules, error
messages, and help messages, and it's also terrifyingly easy to have
conflicts between commands. As a result, a lot of effort has gone to
making the Zend\Console library self-contained, and some of us even
extended that to create a standalone Console application library
(zfcampus/zf-console) to simplify creation of console applications.
My point: the idea seems good at first blush, until you start
incorporating the ideas into larger applications.
> If you want a standard for CLI apps, a more favourable proposal would be a
> Command standard interface.
Which is why I'd give this a +1, but not the original proposal.
--
Matthew Weier O'Phinney
mweiero...@gmail.com
https://mwop.net/