title: Yii2: a proper way to resolve ambiguity of controller and module names
body: <p>As far as I know, currently Yii 2 doesn't have an out of the box method to resolve ambiguity of controller and module names. An example of module hierarchy to describe what exactly I mean:</p>
  
  <p><code>app\modules\v1\controllers\UserController</code> // resolves the /v1/users and /v1/users/{id} actions
  <code>app\modules\v1\modules\user\Module.php</code> // nested module, resolves the /v1/user/... controllers and their actions, e.g. /v1/user/something/{id}</p>
  
  <p>In this case, the UserController conflicts with the user Module. The main reason of the ambiguity is the singular-plural magic of Yii 2 framework. I didn't find an appropriate solution to resolve this ambiguity. Further my ideas how to resolve it.</p>
  
  <ol>
  <li>Rename the module.</li>
  <li>Rename the UserController to the UsersController.</li>
  <li>Create an additional submodule, and place there the UserController. E.g. <code>app\modules\v1\modules\root\controllers\UserController</code></li>
  </ol>
  
  <p>I'm not sure that at least one of these options is a quite elegant one and a proper solution in view of the Yii 2 philosophy.</p>
  
  <p>Coming back to the main question, what is a more appropriate approach to resolve this issue by the Yii 2 philosophy? Controller and Module is two different types of objects, which is differently pluralized or not, thus should be right way to separate them in the routing for the described case.</p>