{"action":"closed","issue":{"url":"https://api.github.com/repos/2amigos/yii2-usuario/issues/282","repository_url":"https://api.github.com/repos/2amigos/yii2-usuario","labels_url":"https://api.github.com/repos/2amigos/yii2-usuario/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/2amigos/yii2-usuario/issues/282/comments","events_url":"https://api.github.com/repos/2amigos/yii2-usuario/issues/282/events","html_url":"https://github.com/2amigos/yii2-usuario/issues/282","id":372145246,"node_id":"MDU6SXNzdWUzNzIxNDUyNDY=","number":282,"title":"Allow to define controllerNamespace","user":{"login":"kryvel","id":13569035,"node_id":"MDQ6VXNlcjEzNTY5MDM1","avatar_url":"https://avatars1.githubusercontent.com/u/13569035?v=4","gravatar_id":"","url":"https://api.github.com/users/kryvel","html_url":"https://github.com/kryvel","followers_url":"https://api.github.com/users/kryvel/followers","following_url":"https://api.github.com/users/kryvel/following{/other_user}","gists_url":"https://api.github.com/users/kryvel/gists{/gist_id}","starred_url":"https://api.github.com/users/kryvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryvel/subscriptions","organizations_url":"https://api.github.com/users/kryvel/orgs","repos_url":"https://api.github.com/users/kryvel/repos","events_url":"https://api.github.com/users/kryvel/events{/privacy}","received_events_url":"https://api.github.com/users/kryvel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-19T23:20:16Z","updated_at":"2018-11-01T20:35:22Z","closed_at":"2018-11-01T20:35:22Z","author_association":"NONE","body":"Hi there!\r\nCould you please add possibility  to define controllers namespace?\r\nCurrently it is hardcoded in Bootstrap.php\r\n\r\n```\r\nprotected function initControllerNamespace(WebApplication $app)\r\n    {\r\n        $app->getModule('user')->controllerNamespace = 'Da\\User\\Controller';\r\n        $app->getModule('user')->setViewPath('@Da/User/resources/views');\r\n    }\r\n```\r\nand it isn't possible to define own namespace.\r\n\r\nI know that there is controllerMap, but it's more convenient to define namespace only once, than do it for each of controllers.\r\n\r\n\r\n### What steps will reproduce the problem?\r\nTry to define controllerNamespace as following\r\n```\r\n'user' => [\r\n    ...\r\n    'controllerNamespace' => 'custom\\controllers',\r\n    ...\r\n]\r\n```\r\n### What is the expected result?\r\n`Yii::getModule('user')->controllerNamespace === 'custom\\controllers'`\r\n\r\n### What do you get instead?\r\n`Yii::getModule('user')->controllerNamespace === 'Da\\User\\Controller'`\r\n\r\n\r\nThanks in advance"}}
{"actor":{"display_login":"tonydspaniard"}}