Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make yii\web\GroupUrlRule support yii\rest\UrlRule #9122

Closed
callmez opened this issue Jul 16, 2015 · 3 comments
Closed

Make yii\web\GroupUrlRule support yii\rest\UrlRule #9122

callmez opened this issue Jul 16, 2015 · 3 comments

Comments

@callmez
Copy link
Contributor

callmez commented Jul 16, 2015

new GroupUrlRule([
    'prefix' => 'api',
    'rules' => [
        ['class' => 'yii\rest\UrlRule', 'controller' => 'user'],
        ['class' => 'yii\rest\UrlRule', 'controller' => 'product'],
    ],
]);
@lichunqiang
Copy link
Contributor

这个是支持的吧,GroupUrlRule::$ruleConfig

new GroupUrlRule([
    'prefix' => 'api',
    'ruleConfig' => ['class' => 'yii\rest\UrlRule'],
    'rules' => [
        ['controller' => 'user'],
        ['controller' => 'product'],
    ],
]);

@callmez
Copy link
Contributor Author

callmez commented Jul 16, 2015

没有用的

@yii-bot
Copy link

yii-bot commented Apr 5, 2018

Issue moved to yiisoft/yii-api#9

@yii-bot yii-bot closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants