Confused About Parserequest Function

Hi all,

I am newbie with Yii 2.0.

While custom URL from extend UrlRule.

I have function:

    public function parseRequest($manager, $request)


        $pathInfo = $request->getPathInfo();

        if (preg_match('%^(\w+)(/(\w+))?$%', $pathInfo, $matches)) {

            return ['something/index', $params]


        return false;


I dont under stand why it return $params for what ? because in Yii 1.0 I just need return return [‘something/index’];

anyone please teach me about it.

Thank you!