mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-05 23:14:40 +01:00
Fixes #3088: The debug and gii modules will manage their own URL rules now
This commit is contained in:
@@ -117,6 +117,13 @@ class Module extends \yii\base\Module implements BootstrapInterface
|
||||
$app->on(Application::EVENT_BEFORE_REQUEST, function () use ($app) {
|
||||
$app->getView()->on(View::EVENT_END_BODY, [$this, 'renderToolbar']);
|
||||
});
|
||||
|
||||
$app->getUrlManager()->addRules(
|
||||
[
|
||||
$this->id => $this->id,
|
||||
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user