{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10231","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T14:00:31Z","updated_at":"2015-11-23T14:08:23Z","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\nin\r\n\r\n`vendor/yiisoft/yii2/rest/UrlRule.php:223`\r\n\r\nbut in this class this property does not exist.\r\n\r\nstate of `$rule` in `vendor/yiisoft/yii2/rest/UrlRule.php:223`\r\n\r\n```\r\nyii\\web\\UrlRule::__set_state(array(\r\n   'name' => 'user/users',\r\n   'pattern' => '#^user/users$#u',\r\n   'host' => NULL,\r\n   'route' => 'user/rest/index',\r\n   'defaults' => \r\n  array (\r\n  ),\r\n   'suffix' => NULL,\r\n   'verb' => \r\n  array (\r\n    0 => 'GET',\r\n    1 => 'HEAD',\r\n  ),\r\n   'mode' => NULL,\r\n   'encodeParams' => true,\r\n   '_template' => '/user/users/',\r\n   '_routeRule' => NULL,\r\n   '_paramRules' => \r\n  array (\r\n  ),\r\n   '_routeParams' => \r\n  array (\r\n  ),\r\n))\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/158940875","html_url":"https://github.com/yiisoft/yii2/issues/10231#issuecomment-158940875","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10231","id":158940875,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T14:08:23Z","updated_at":"2015-11-23T14:08:23Z","body":"Do you work with Yii stable release 2.0.6, or with current development version?"}}