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

yii\web\GroupUrlRule RESTFul is not supported #14955

Closed
xutl opened this issue Oct 12, 2017 · 1 comment
Closed

yii\web\GroupUrlRule RESTFul is not supported #14955

xutl opened this issue Oct 12, 2017 · 1 comment

Comments

@xutl
Copy link
Contributor

xutl commented Oct 12, 2017

What steps will reproduce the problem?

Fake code

$urlRules = [
    [
            'class' => 'yii\rest\UrlRule',
            'except' => ['delete', 'create', 'update'],
            'controller' => [ 'language']
        ],
];
class AAA implements BootstrapInterface{
    $app->urlManager->addRules([new GroupUrlRule([
            'ruleConfig' => ['class' => 'yii\rest\UrlRule'],
            'routePrefix' => 'v1',
            'prefix' => 'v1',
            'rules' => $urlRules,
        ])], false);
}

### What is the expected result?

For a version of the module, you can not use GroupUrlRule to register REST Url at once

### What do you get instead?


### Additional info

| Q                | A
| ---------------- | ---
| Yii version      | 2.0.13-dev
| PHP version      | 7.1.6
| Operating system | Windows 10
@rob006
Copy link
Contributor

rob006 commented Oct 12, 2017

Duplicates #9122.

@rob006 rob006 closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants