title: yii2 console unknown command
body: <p>Trying to run function <code>_googleanalytics</code> in controller <code>ProcessingController</code>, but getting an error:</p>
  <blockquote>
  <p>unknown command</p>
  </blockquote>
  <p><strong><code>command</code></strong>:</p>
  <p><code>./yii processing/_googleanalytics '2017-02-27' '2017-02-27'</code></p>
  <p><strong><code>controller</code></strong> path:</p>
  <p><code>/console/controllers/</code></p>
  <p><strong><code>action</code></strong></p>
  <pre><code>public function _googleanalytics($start, $finish) {...
  </code></pre>
  <p><strong><code>controller</code></strong></p>
  <pre><code>namespace console\controllers;
  class ProcessingController extends Controller
  {...
  </code></pre>
  <p><strong><code>/console/config/main.php</code></strong></p>
  <pre><code>return [
      'id' =&gt; 'app-console',
      'basePath' =&gt; dirname(__DIR__),
      'bootstrap' =&gt; ['log'],
      'controllerNamespace' =&gt; 'console\controllers',
      'aliases' =&gt; [
          '@bower' =&gt; '@vendor/bower-asset',
          '@npm'   =&gt; '@vendor/npm-asset',
      ],
      'controllerMap' =&gt; [
          'fixture' =&gt; [
              'class' =&gt; 'yii\console\controllers\FixtureController',
              'namespace' =&gt; 'common\fixtures',
            ],
      ],
      'components' =&gt; [
          'log' =&gt; [
              'targets' =&gt; [
                  [
                      'class' =&gt; 'yii\log\FileTarget',
                      'levels' =&gt; ['error', 'warning','info'],
                      'exportInterval' =&gt; 1,
                  ],
                  [
                      'class' =&gt; 'yii\log\FileTarget',
                      'levels' =&gt; ['info'],
                      'exportInterval' =&gt; 1,
                      'logVars' =&gt; [],
                      'categories' =&gt; ['calls'],
                      'logFile' =&gt; '@app/runtime/logs/calls.log',
                      'maxFileSize' =&gt; 1024 * 2,
                      'maxLogFiles' =&gt; 20,
                  ],
              ],
          ],
      ],
      'modules'=&gt;[
          'user-management' =&gt; [
              'class' =&gt; 'webvimark\modules\UserManagement\UserManagementModule',
              'controllerNamespace'=&gt;'vendor\webvimark\modules\UserManagement\controllers', // To prevent yii help from crashing
          ],
          'googleanalytics' =&gt; [
             'class' =&gt; 'console\modules\googleanalytics\Module',
          ]
      ],
      'params' =&gt; $params,
  ];
  </code></pre>
  <p>what I am doing wrong?</p>