public static function setRequestInfo($request)
    {
        if ($request instanceof ServerRequest) {
            static::pushRequest($request);
        } else {
            deprecationWarning(
                'Passing an array into Router::setRequestInfo() is deprecated. ' .
                'Pass an instance of ServerRequest instead.'
            );

            $requestData = $request;
            $requestData += [[], []];
            $requestData[0] += [
                'controller' => false,
                'action' => false,
                'plugin' => null
            ];
            $request = new ServerRequest([
                'params' => $requestData[0],
                'url' => isset($requestData[1]['here']) ? $requestData[1]['here'] : '/',
                'base' => isset($requestData[1]['base']) ? $requestData[1]['base'] : '',
                'webroot' => isset($requestData[1]['webroot']) ? $requestData[1]['webroot'] : '/',
            ]);
            static::pushRequest($request);
        }
    }