{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7480","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7480/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7480/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7480/events","html_url":"https://github.com/cakephp/cakephp/issues/7480","id":108856073,"number":7480,"title":"3.1 Request shows controller in lowercase when using prefix route","user":{"login":"bravo-kernel","id":230500,"avatar_url":"https://avatars.githubusercontent.com/u/230500?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo-kernel","html_url":"https://github.com/bravo-kernel","followers_url":"https://api.github.com/users/bravo-kernel/followers","following_url":"https://api.github.com/users/bravo-kernel/following{/other_user}","gists_url":"https://api.github.com/users/bravo-kernel/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo-kernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo-kernel/subscriptions","organizations_url":"https://api.github.com/users/bravo-kernel/orgs","repos_url":"https://api.github.com/users/bravo-kernel/repos","events_url":"https://api.github.com/users/bravo-kernel/events{/privacy}","received_events_url":"https://api.github.com/users/bravo-kernel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/On%20hold","name":"On hold","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/60","html_url":"https://github.com/cakephp/cakephp/milestones/3.1.1","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/60/labels","id":1314897,"number":60,"title":"3.1.1","description":"Bugfixes and minor enhancements for 3.1.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":36,"state":"open","created_at":"2015-09-20T02:24:50Z","updated_at":"2015-09-30T05:26:16Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-09-29T12:08:59Z","updated_at":"2015-09-30T05:26:16Z","closed_at":"2015-09-30T05:26:16Z","body":"Cake 3.1 Request is giving me lowercased controller name where I expected these to (always) be uppercased. My `$request->params`:\r\n\r\n```\r\n    [plugin] => \r\n    [controller] => countries\r\n    [action] => index\r\n    [_ext] => \r\n    [pass] => Array\r\n        (\r\n        )\r\n\r\n    [prefix] => editor\r\n    [isAjax] => \r\n```\r\n\r\nI'm using Cake 3.1 with a plain basic prefixed route:\r\n\r\n```php\r\n    // Create nested prefix used by the Editor\r\n    $routes->prefix('editor', function ($routes) {\r\n        $routes->connect('/:controller');\r\n        foreach (API_RESOURCES as $apiResource) {\r\n            $routes->resources($apiResource, [\r\n                'inflect' => 'dasherize',\r\n        }\r\n    }\r\n```\r\n\r\nAlso tested without the foreach loop and without the dasherized inflection, still lowercase.\r\n"}}