-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Labels
Description
When creating REST controller rest
for module user
I have the following properties of the module
public $urlRules = [
[
'class' => 'yii\rest\UrlRule',
'controller' => ['user/users'=>'user/rest'], //http://www.yiiframework.com/doc-2.0/yii-rest-urlrule.html
],
...
];
but when I turn to the address /user/users
the script returns an error Getting unknown property: yii\rest\UrlRule::name
really logger tries to access this property
Yii::trace("Request parsed with URL rule: {$rule->name}", __METHOD__);
$rule
in
vendor/yiisoft/yii2/web/CompositeUrlRule.php:51
but in this class this property does not exist.