class Redirector implements UrlRuleInterface
{
/**
* Parses the given request and returns the corresponding route and parameters.
*
@param UrlManager $manager the URL manager
*
@param Request $request the request component
*
@return array|bool the parsing result. The route and the parameters are returned as an array.
* If false, it means this rule cannot be used to parse this path info.
*/
public function parseRequest($manager, $request)
{
MyLogUtils::info('redirector','redirector');
Yii::$app->response->redirect("/");
}