`$this->getRequest()` is deprecated, IMO we should pass there `$request` in controller actions to prevent this problem.