{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10231","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10231/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10231/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10231/events","html_url":"https://github.com/yiisoft/yii2/issues/10231","id":118385184,"number":10231,"title":"Getting unknown property: yii\\rest\\UrlRule::name","user":{"login":"bscheshirwork","id":5769211,"avatar_url":"https://avatars.githubusercontent.com/u/5769211?v=3","gravatar_id":"","url":"https://api.github.com/users/bscheshirwork","html_url":"https://github.com/bscheshirwork","followers_url":"https://api.github.com/users/bscheshirwork/followers","following_url":"https://api.github.com/users/bscheshirwork/following{/other_user}","gists_url":"https://api.github.com/users/bscheshirwork/gists{/gist_id}","starred_url":"https://api.github.com/users/bscheshirwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bscheshirwork/subscriptions","organizations_url":"https://api.github.com/users/bscheshirwork/orgs","repos_url":"https://api.github.com/users/bscheshirwork/repos","events_url":"https://api.github.com/users/bscheshirwork/events{/privacy}","received_events_url":"https://api.github.com/users/bscheshirwork/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/feature:rest","name":"feature:rest","color":"bfd4f2"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"open","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"assignees":[{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/20","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.11","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/20/labels","id":1736699,"number":20,"title":"2.0.11","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":0,"state":"open","created_at":"2016-04-28T15:04:50Z","updated_at":"2016-10-07T08:51:16Z","due_on":"2016-11-12T23:00:00Z","closed_at":null},"comments":8,"created_at":"2015-11-23T14:00:31Z","updated_at":"2016-10-07T10:10:11Z","closed_at":null,"body":"When creating REST controller `rest` for module `user` I have the following properties of the module\r\n```\r\n    public $urlRules = [\r\n        [\r\n            'class' => 'yii\\rest\\UrlRule',\r\n            'controller' => ['user/users'=>'user/rest'], //http://www.yiiframework.com/doc-2.0/yii-rest-urlrule.html\r\n        ],\r\n    ...\r\n    ];\r\n```\r\n\r\nbut when I turn to the address `/user/users` the script returns an error `Getting unknown property: yii\\rest\\UrlRule::name`\r\n\r\nreally logger tries to access this property\r\n`Yii::trace(\"Request parsed with URL rule: {$rule->name}\", __METHOD__);`\r\n\r\n`$rule` \r\nin \r\n`vendor/yiisoft/yii2/web/CompositeUrlRule.php:51` \r\n\r\nbut in this class this property does not exist.\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/252206049","html_url":"https://github.com/yiisoft/yii2/issues/10231#issuecomment-252206049","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10231","id":252206049,"user":{"login":"tunecino","id":5133397,"avatar_url":"https://avatars.githubusercontent.com/u/5133397?v=3","gravatar_id":"","url":"https://api.github.com/users/tunecino","html_url":"https://github.com/tunecino","followers_url":"https://api.github.com/users/tunecino/followers","following_url":"https://api.github.com/users/tunecino/following{/other_user}","gists_url":"https://api.github.com/users/tunecino/gists{/gist_id}","starred_url":"https://api.github.com/users/tunecino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunecino/subscriptions","organizations_url":"https://api.github.com/users/tunecino/orgs","repos_url":"https://api.github.com/users/tunecino/repos","events_url":"https://api.github.com/users/tunecino/events{/privacy}","received_events_url":"https://api.github.com/users/tunecino/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T10:10:11Z","updated_at":"2016-10-07T10:10:11Z","body":"why involving `yii\\web\\GroupUrlRule` with `yii\\rest\\UrlRule` ?\r\n\r\nIf I'm not wrong `yii\\web\\GroupUrlRule` is meant to group many `yii\\web\\UrlRule` within a $prefix while `yii\\rest\\UrlRule` is already a collection of `yii\\web\\UrlRule` instances and that is why there is also `yii\\rest\\UrlRule::$prefix` so sub-rules could be grouped like here: https://github.com/yiisoft/yii2/issues/9474#issue-101950485"}}
{"actor":{"display_login":"tunecino"}}