How to create ZF3 console application : <p>In Zend Framework 2 it's very simple to add the initial module banner to the console applications.</p>

<p>All we need to is to implement the <code>getConsoleBanner</code> and <code>getConsoleUsage</code> methods and implement the <code>Zend\ModuleManager\Feature\ConsoleUsageProviderInterface</code> or <code>ConsoleBannerProviderInterface</code> interfaces.</p>

<p>This is good enough to dump those messages in the console when <code>public/index.php</code> is started via CLI.</p>

<p>In Zend Framework 3 it's not the same.</p>

<p>Doing the same setup does not provide the same result. Actually in the console we see the default html page for the skeleton app the same way as we visit it via the browser. </p>

<p>That page is being seen before we install the custom module:
Here are the docs for the <code>zend-mvc-console</code> module
<a href="https://zendframework.github.io/zend-mvc-console/intro/">https://zendframework.github.io/zend-mvc-console/intro/</a></p>

<p>Even after module is installed as suggested (<code>'Zend\Mvc\Console'</code> added in module definitions) the console banners are not shown. I've tested with var dumping inside the methods and I'm able to view the data, so the framework executes those methods but shows no result in the console.</p>

<p>I've tested with console routes and controllers. Route is found, controller action is executed but nothing is shown in the cli again.</p>

<p>I've digged in the code of the framework and it seems the <code>Zend\Mvc\Console\ResponseSender\ConsoleResponseSender</code> class is never executed.</p>

<p>Do I have to register some <code>view_manager</code> strategies in order to get something displayed in the CLI?</p>

<p>Here are the sources on top of the zf3 skeleton application:
<a href="https://gist.github.com/kachar/06f0c9096bcc1cc0b00f4612aed1b68b">https://gist.github.com/kachar/06f0c9096bcc1cc0b00f4612aed1b68b</a></p>

<p>Running the app:</p>

<pre><code>$ php -v
PHP 7.0.6 (cli) (built: Apr 27 2016 14:00:40) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

$ php public/index.php
Application\Module::getConsoleBanner
Application\Module::getConsoleUsage

$ php public/index.php user
Application\Controller\IndexController::indexAction
</code></pre>
