Type hint $response param.
Update arguments of Controller::beforeRedirect()

It now expects the same args as RequestHandler::beforeRedirect().
Merge pull request #3772 from ADmad/3.0-beforeredirect

3.0 beforeredirect