public function init()
{
if ($this->module === null) {
throw new InvalidConfigException('The module attribute is required and can not be null.');
}
// add the module specific url rules to the url manager
$this->urlManager->addRules($this->module->urlRules, true);
}